Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low level file writing
Message
From
19/01/2001 16:25:59
 
General information
Forum:
Java
Category:
Java Technologies and APIs
Miscellaneous
Thread ID:
00464614
Message ID:
00466012
Views:
12
>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
Map
View

Click here to load this message in the networking platform