Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlet That Writes to a Flat File - Text

Status
Not open for further replies.

vvicin01

Programmer
Aug 14, 2001
21
0
0
US
Can someone provide me code that will enable me to pull data from an html page and write the results to a text file on a server using servlets - server supports JRUN. I need to create a new line for each entry.

Thank you
Vic
 
This is pretty basic Java programming. Create an output file FileOutputStream out = new FileOutputStream(outPutFile);
Write a line of text.

out.writeln("TEXT here");

remember to import java.io.*;

almost any decent Java Book will give you examples of how to do this.

Keith
kcorbin@lifelinesys.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top