Re: write to a file by Al
Al
Sun Aug 24 20:21:26 CDT 2003
If someone gave you a script to do exactly what you want, would you know any
more about vbscript as a result?
That said, see comments in-line
"Jim" <xyz_999@hotmail.com> wrote in message
news:024d01c36aa4$386c0550$a601280a@phx.gbl...
> Hello,
> I do not know anything about VBScript yet. How can I
> write a vbs file in windows 2000 that handles the
> following?
> 1. Open a text file
read about the File System Object in the vbscript/WSH documentation,
specifically the .OpenTextFile method.
> 2. jump a few lines
No such thing - I would just read a few lines (with the .ReadLine method of
a textstream object, and then not do anything with the input.
> 3. read the rest of lines and write to another file
.ReadLine and .WriteLine. You will need to use .CreateTextFile or .Open to
create the output stream.
> 4. exit
Just fall off the end of the script, or use Wscript.quit
> Any Help?
I dunno, you be the judge.
/Al