[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] (no subject)
José,
Not that I am aware of. We've done something similar by renaming a file,
opening a new file (with the same name as the original file), and reading
each line of the original file. If the line meets the criteria, write it
to the new file -- otherwise discard it. In the end, you can delete the
original file with the new name.
Here's the code to rename the original file:
let $FileName = 'c:\temp\original name.txt'
let $Backup = 'c:\temp\new name.txt'
Let #DeleteStatus = delete($Backup)
Let #RenameStatus = rename($FileName,$Backup)
If #RenameStatus <> 0
show 'Could not rename file ' $FileName
Stop
end-if
Don Barclay
Westinghouse Savannah River Co.
Aiken, SC
"Aguirre, Jose" <JAguir@lsuhsc.edu>
Sent by: sqr-users-admin@sqrug.org
04/22/2003 03:50 PM
Please respond to sqr-users
To: "'sqr-users@sqrug.org'" <sqr-users@sqrug.org>
cc:
Subject: [sqr-users] (no subject)
Hello all,
Is it possible to delete a row from a .txt file under a certain criteria
thru an SQR while it is open?
Thanks,
José A. Aguirre
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users