danatomega
Lifetime Supporting Member
Yes, but you really need to break out that manual I linked to.
Use the FileReadMessage function to get the number of bytes offset to your line #5:
FileReadMessage ("c:\Data\File.txt",0,MsgTag, 0);
This will start reading at the beginning of the file (1st '0' specified 0 offset), into MsgTag, and read until line feed (LF).
The return value is the new offset position after the read.
Do this 4 times (using each new offset) to get to the offset to line #5, then do a FileWriteMessage using the offset into the file.
This will only work if the lines are of the same length - if your Date / Time stamp vary in length you will have a problem.
Use the FileReadMessage function to get the number of bytes offset to your line #5:
FileReadMessage ("c:\Data\File.txt",0,MsgTag, 0);
This will start reading at the beginning of the file (1st '0' specified 0 offset), into MsgTag, and read until line feed (LF).
The return value is the new offset position after the read.
Do this 4 times (using each new offset) to get to the offset to line #5, then do a FileWriteMessage using the offset into the file.
This will only work if the lines are of the same length - if your Date / Time stamp vary in length you will have a problem.