Thanks for the reply.
I have a
servlet that obtains a connection to my database and reads various records from a products table. I then loop through the resultset, re-format and add the fields of my choice to a
string buffer, similar to CSV format.
I have got this far and have the data ready to send to the file.
I would like to output the data to a text file. (but delete the same filename first if it already exists)
I will then form a URL that points to the file and send it in an email message using my JavaMail class.
I would like to place the file into a folder off my ROOT directory if possible. (For example "/csvs/001.txt")
I would be grateful for any help you can offer.
Thanks,
Keith.