12-12-2005 05:28 AM
12-12-2005 07:38 AM
You simply need to open a new file and write to it using WriteLine.
If you are readind and writing in the same process, your loop will be the following:
OpenFile (source, open for reading in ascii mode)
OpenFile (destination, open for writing in ascii mode)
while (1) {
result = ReadLine (from source)
if (result == -2) break // End-of-file reached
Scan the buffer
Create the new buffer with selected fields using sprintf or Fmt functions
WriteLine (to destination)
}
CloseFile (source)
CloseFile (destination)
12-13-2005 12:49 AM
Hello Roberto,
Thanks a lot for ur advice.Now I am able to copy the whole file,do the scanning and write it to other file.Earlier I was not getting last two lines of the file.Now the problem has gone.Anyway once again thanking u.Expecting the same cooperation from u in future.
Vava