Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import big text file into DBF or DBC
Message
 
À
18/08/2006 14:53:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01144692
Message ID:
01146839
Vues:
14
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform