Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text file with no eof() ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00899420
Message ID:
00899430
Views:
14
Steve,

Most probably the error referrs to the end of the table to append to, not the end of the text file. IOW, your prg hits the end of the table when is trying to append memo from text file.

HTH


>Hi,
>I need to appe a text file to a foxPro table. I am trying to do this with
>appe memo MyField from Text1.txt type sdf.
>This begins okay but each time I get the error message "end of File encountered."
>Could this mean that the text file has no eof() marker? I can get around this
>problem by importing the text1 file into Excel and then having excel write a new text
>file text2.txt. Then FoxPro can appe this text2.txt with no problem. However, is there a way
>for FoxPro to check for the presence of an eof() marker in text1.txt and add on it not there?
>Or is there another way for FoxPro to appe in this apparently offensive text file, low level
>file reading routines?
>Thanks
>Steve Elster
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform