From: "L P" <[EMAIL PROTECTED]> > I need to read lines 26 and 27 to check to see if there are two things > present 1. That from col 11-18 ôRunning ö is there and 58-82 is NULL > > I am using the seek function to do this. Is that correct? From my > understand the only positions you can set are. 0. Beginning 1. Current > 2. End If that is the case it is not. > > Here is the structure I am using: > Seek(WORKFLOW,26,11);
No you can't use this. seek() knows nothing about lines. It allows you to move to a BYTE position in the file. That is .. you can for example skip the first 500 bytes of the file, or you can save your current position in the file with tell() and return back later. But since your lines are not "fixed length" (there is not the same number of bytes in each) you can't compute the position of the start of line 26. I guess the only way would be to skip (read with <FILEHANDLE> and forget) the first 25 lines, read the 26th, compare with whatever you like, read 27th and again compare. (Left to the reader as an easy homework.) Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]