You can use any of the standard Java API's from a servlet.  I would suggest
java.io.FileWriter for Text data (possibly wrapped in a java.io.PrintWriter
for ease of use) or java.io.FileOutputStream for binary data.
    (*Chris*)

----- Original Message -----
From: sajida kalsoom <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 1999 4:04 AM
Subject: How to write in a file from servlets


> Hello users;
>   can some body tell me, is there any way to save data in a file from
> servlet at server machine running  servlets . I have tried to save data in
> random access file but servlet throws java.io.IOException
>
>     I am using apache 1.3.3 Jserv 1.0b3 on  Intel solaris 7
>
>
___________________________________________________________________________
> 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

Reply via email to