General information
Category:
Java Technologies and APIs
>Hi all,
>
>Is there anybody who has experience with low level file handling. Just like writing to
>an plain ASCII file. Also I need to write chracters to this file. In Visual Foxpro you
>can do it like FWRITE(nFilehandle, CHR(13)+CHR(200)+"text"). Now I need to do
>the same way in java. Anybody an idea?
>
>Thanks in Advance,
>
>Sander
try {
FileOutputStream out = new FileOutputStream( "filename" );
byte[] buf = { 13, 200, 't', 'e', 'x', 't' };
out.write( buf );
out.close();
catch( IOException e ) {
System.err.println("Oops!");
}
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only