| || |
sqa-suite-users digest: February 15, 2002
User Marina Osipov (Marina@Surf-com.com.nospam) posted:
I have to open text file, seach for the specific line, go to the end of
line, erase something and write something else - recording using robot
doesn't help us, it should be done on the background.can't found
appropriate method - Write or write line method erasing all contents of
the file and write on the first row
Re: sqa-suite-users digest: February 15, 2002
User (email@example.com) posted:
One way is to
1) renanme the file
2) Read in line by line from that file
If the line does not need to be changed write it to a file with the
Else if it is the line to be changed make the changes and write it,
then all the rest of the file.
3) Close both files.
The file comands output, input open etc will show you how to handle the
The string commands left mid right len etc will show you how to handle how
to look for what you are looking for in each line, then change it.