Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low level file writing
Message
De
19/01/2001 16:25:59
 
Information générale
Forum:
Java
Catégorie:
Technologies Java et APIs
Divers
Thread ID:
00464614
Message ID:
00466012
Vues:
13
>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!");
}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform