Simple VBScript question

l3msip

New member
Dec 18, 2009
453
8
0
I need to get VBScript to write a variable to an existing text file
I need it to add it on to the end of the last existing line, so if this is the file:

1. stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,
2. stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,
3. stuff,stuff,stuff,stuff,stuff,stuff,stuff,stuff,[I WANT IT WRITTEN HERE]

I know this should be stupid simple, but when it comes to VBS, im stupid!
I can get the variable written to the file, but it overwites everything, rather than appending it to the end of the last line.

Any help appreciated.
 


+rep
Thanks alot, will try and hack that into my current script
May be back with problems thought!
Cheers
 
Works great, now im getting into it VBS doesn't seem too bad.
Just a pain having to constantly remove the semicolons i keep adding to every bloody line.