query about io streams - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

query about io streams

link2rajlink2raj Posts: 9Member
in java when ::
FileWriter fw=new FileWriter("arr.txt");
BufferedWriter bw=new BufferedWriter(fw);
PrintWriter p=new PrintWriter(bw);
p.print("fff");

fff should be written to file arr.txt but when arr.txt is opened there is no content in file why??
( i have not closed the streams but on closing streams file is showing its contents ie.fff)why?
plz reply me [email protected]
Sign In or Register to comment.