[6027] in java-interest

home help back first fref pref prev next nref lref last post

Writing into a file

daemon@ATHENA.MIT.EDU (Velikandanathan Balaji)
Sat Mar 16 00:47:37 1996

Date:         Sat, 16 Mar 1996 00:34:50 -0500
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Velikandanathan Balaji <nathan@NPAC.SYR.EDU>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

Hi

I am trying to write data in to a file.


bout = new BufferedOutputStream(fout);
dout = new DataOutputStream(bout);
dout.writeChars("Hello World")

I am saying fout = new FileOutputStream("file_name");

Its not giving any exceptions, creates the file "file_name", but
the file is empty.


Thanks in advance for any help
-Balaji

home help back first fref pref prev next nref lref last post