OutputStream

425 단어 OutputStream
import java.io.*;
public class OutputStr
{
    public static void main(String[] args) throws Exception
    {
        File file = new File("D:\\temp","write.txt");
        OutputStream os = new FileOutputStream(file);
    //    os.write(89); //    int  
        String str = "haahahahah";
        os.write(str.getBytes());
          os.flush();//    
        os.close();
    }
}

좋은 웹페이지 즐겨찾기