자바 표준 IO 작업, Input, Output 입 출력
652 단어 IT 종사자
public static void main(String[] args) throws IOException {
/*
* fos.txt
* :
* FileOutputStream(String path)
* FileOutputSteam(File file)
* , , ,
*
*
* FileOutputStream(String path,boolean append)
* FileOutputSteam(File file,boolean append)
* true , ,
*
*
*/
FileOutputStream fos=new FileOutputStream("fos.txt");
String str="up ";
fos.write(str.getBytes("UTF-8"));
System.out.println(" ");
fos.close();
}