Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many fields in a text file!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00040935
Message ID:
00040937
Vues:
25
>I am currently trying to append a text file which contains more than 300+ fields. What is the best solution to append a text file without losing any of the fields??

You could try low level file operations.
Open the file for reading and read in the fields one at a time, once
a record has been read, then select a table to put the fields into, then
go on to read the next record for the file, until the eof is reached on the
input file. This solution works if you know the record layout of the file
you need to read in, e.g field1 is 6 characters, field2 is 7 characters, etc...
Low level file operations can read in character by character or get a certain
number of characters at a time...

Look at fread, fopen, etc....

Hope this helps
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform