Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing a flat file from memory
Message
From
08/11/2001 12:35:11
 
 
To
08/11/2001 12:04:07
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00579164
Message ID:
00579203
Views:
20
I can sort of reproduce your problem if I use the following code. The problem may be, that you are not opening the table read-write "fopen(cFileName,2)".
*&
*& Create the file!
STRTOFILE("0001","c:\test.txt")
CVALUE=FILETOSTR('C:\test.TXT')
? CVALUE
*&
*& Open the file and update!
*& use this one to open read-only
lnHandle = FOPEN("c:\test.txt")  *& FOPEN("c:\test.txt",2)

FPUTS(lnHandle,"0002")
FCLOSE(lnHandle)
*&
*& The update did not happen, becuase the file was opened read-only!
CVALUE=FILETOSTR('C:\test.TXT')
? CVALUE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform