package com.okseby.io;

import java.io.FileWriter;

import com.okseby.win.Window;

public class Save {
	static FileWriter fw;
	
	public static void saveFile(String resource) {
		try {
			fw = new FileWriter(resource);
			
			fw.write(Window.textArea.getText());
			
			fw.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
