Personally if I am dealing with
text files i like to use:
PrintWriter pw=new PrintWriter( new FileWriter("path/to/the/file/",true) );
/*where true meens that the content is appended at the end of the file.*/
pw.println(....);
pw.close();
Best wishes,
Andras.
----- Original Message -----
From: Peet DENNY <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 04, 1999 9:51 PM
Subject: Writing text messages to the server
> Hi, I'd like to know how I can append text messages to a simple text file
on
> the server. I presume that I can use a DataOutputStream, but I can't
figure
> out how to convert the text messages to bytes first.
> Can anyone help?
> Cheers
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html