Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import big text file into DBF or DBC
Message
 
To
18/08/2006 14:53:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01144692
Message ID:
01146839
Views:
19
>Thanks Peter,
>
>A long time I did not used low level function, would you please some coding
>samples how to use : fread,fopen,fclose,fwrite
>
>TIA
lnFileH = FOPEN(full_path_to_file)
IF lnFileH < 0
   ** Can't open file
   RETURN
ENDIF
DO WHILE NOT FEOF(lnFileH)
   lcBuffer = FREAD(lnFileH, 10240) && Read 10K from file
   INSERT INTO MyTable (MyMemo) VALUES (lcBuffer)
ENDDO
FCLOSE(lnFileH)
BUT low level functions also would not work with 3GB fle.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform