>>cDataVal = FGETS(nFH,1000)
>>
>>The variable cDataVal would contain the string up to the first CR or 1000 bytes, whichever comes first. Just keep looping through the file until done.
>
>Alright, something's fishy here. Maybe you can tell me what went wrong.
>
>I originally put in my routine "=fgets(lnHandle,999)" and it would crash. I kept changing the #. When the # was less that 256 it worked fine, but if I put in a # greater that 256 it crashed. Now I try it one more time to get the error message and it works fine.
Isn't that the way it always is? I've said to myself many times, "Self, that just isn't working right. It must be a bug!" And then I go to show it to someone else and it works perfectly. Such is life.