//Sample01_01.java import java.io.File; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; class Sample01_01{ public static void main(String[] args){ String path = "hello.txt"; File file = new File(path); try { FileOutputStream outStream = new FileOutputStream(file); int intCh = 'A'; outStream.write(intCh); outStream.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e){ e.printStackTrace(); } } }