rana_m
asked on
write to output file
I want to write (integer,string,float,bool ean) to output file how to create output file and who to write to it.
with regards
with regards
Hi,
try this :
http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html
regards,
Kok Choon.
try this :
http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html
regards,
Kok Choon.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
//say....
String str = "a string";
int i = 9;
float flt = 3.4;
boolean b = false;
FileWriter fw = new FileWriter( new File( "test" ) );
fw.write( i );
fw.write( str );
fw.write( flt );
fw.write( b );
fw.close();
?