Read and write from a text file on godaddy hosting with classic asp

0 replies
Hi,

I'm trying to read and write from a text file via classic asp.

My site is hosted with godaddy, and users can create accounts.
What I want is to have a txt file with a list of available account names (for exampl number 1-10).
Then my code should read a line from the txt file, and then add a for example 'taken' before it. So that the list now looks like:

taken-1'
2
3

So basically I want to be able to read from a txt file as well as write to it.
I found some sample classic asp code, but I believe I have to set something up at godady to be able to read/write this text file.

Anybody know how to do this?

Also, anybody know how to add something in the beginning of a line in a txt file, alternatively delete the line?

Thanks alot, guys.

Best regards,
Thomas
#asp #classic #file #godaddy #hosting #read #text #write

Trending Topics