Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing text files into tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00406303
Message ID:
00406321
Vues:
23
cFile=Getfile("TXT","Open the text File","Open",0)
nhdl=Fopen(cfile,10)
nsize=Fseek(nhdl,0,2) && Move to EOF
IF nsize<=0
*- File is empty
ELSE
=FSeek(nhdl,0,0) && Move to BOF
DO WHILE !FEOF(nhdl)
cString=FGETS(nhdl)
cStr1=Substr(cString,31,3)
cStr2=Substr(cString,78,3)
ENDDO
ENDIF
"Anyone who has never made a mistake has never tried anything new." A.E
"The important thing is not to stop questioning. Curiosity has its own reason for existing." A.E
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform