Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening Text Files
Message
 
 
To
11/04/2003 10:29:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00776573
Message ID:
00776584
Views:
12
>I'm using VFP 5 (ancient I know) and it doesn't seem to have this command.

It was introduced in VFP6SP3, I think. In VFP5 you can use LLFF. Something like (not tested).
lcFileName = < ... >
IF FILE(lcFileName)
  lnFH = FOPEN(lcFileName, 2)
  IF lnFH < 1
    * Process error
  ENDIF
  * Move pointer to the end of the file
  = FSEEK(lnFH, 0, 2)
ELSE
  lnFH = FCREATE(lcFileName)
  IF lnFH < 1
    * Process error
  ENDIF
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform