Wednesday, July 15, 2009

How to delete a content of a file in ASP?

I want to add a new content in begining of a file. How can i do it.


My idea is reading all the data from a file to a variable and write the new content in to a file and then write the old content from a variable.

How to delete a content of a file in ASP?
I would write the new part to a temp file, then add the old part to it. Then read from the temp and write it all at once into the file.
Reply:Look into the FileSystemObject

botanical garden

No comments:

Post a Comment