package com.okseby.io;

import java.io.FileReader;
import com.okseby.win.Window;

public class Open {
	static FileReader fr;
	
	public static void readFile(String resource) {
		try {
			fr = new FileReader(resource);
			
			Window.textArea.read(fr, null);
			
			fr.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}