what I need to do is add to the end of each line in the temp file the value $sequenceValue.You can't do that by opening a file for reading and writing, and processing the file line by line. If you read a line, increase its length, and write it back, you will have (partially) overwriten the next line. The file system has no concept at all of lines. Files are just sequences of bytes.
another problem Im having is althogh I use "seek" when reding the file I get the second line and not the first. thanks.That's because you read in the first line with <TEMPFILE>, discard its result, and then read something with read.
Abigail
In reply to Re: how to read and write at the same time + a problem with seek
by Abigail-II
in thread how to read and write at the same time + a problem with seek
by wolffm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |