adding a test case
[IRC.git] / Robust / src / Tests / FileOutputStreamTest.java
1 //compile: ../buildscript -mainclass FileOutputStreamTest FileOutputStreamTest.java
2
3 public class FileOutputStreamTest {
4   public static void main(String[] args) {
5     FileOutputStream fos = new FileOutputStream("/tmp/fostest.txt");
6     System.out.println("###############");
7     fos.FileOutputStream("/tmp/fostest.txt");
8     byte[] b = new byte[1];
9     b[0] = (byte) 'A';
10     fos.write(b);//write one byte using FileOutputStream
11     fos.flush();
12     fos.close();
13   }
14 }