import java.io.File;
import java.io.FileWriter;
import java.io.IOException;



public class FileOut {

	/**
	 * ã³ã³ã¹ãã©ã¯ã¿.
	 * @param filename æ¸ãåºããã¡ã¤ã«å
	 * @param s æ¸ãåºãæå­å
	 */
	public FileOut(String filename, String s) {
		File f = new File(filename);
		FileWriter fw = null;
		try {
			fw = new FileWriter(f);
			fw.write(s);

		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				fw.close();
			} catch (IOException e) {
				e.printStackTrace();
			}

		}

	}


}