Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to change a txt file to a table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00480723
Message ID:
00480724
Vues:
8
Leroy,

If you know the record layout for your file and, say, it's SDF, you can create a table with necessary structure and then do APPEND FROM youfile TYPE SDF.
Check Help on this command.

You can also use low-level functions (FREAD, FWRITE), but it would be slower.


>Hello everybody!!!!
>I have bumped myself into a brick wall trying to figure out how to pull a line from this file.
>
>Here is the situation:
>My file has records in it that has a total of 269 characters in it.
>I can't do a FGETS() because it will only hold 254 characters.
>
>I need a way to grab the entire line and once I have the line I can manipulate the string to put what I want into the table. But I think that could start another problem . . . how many bytes can a VFP table hold?
>
>Oh Yea, I would probably want to loop it until the end of the file so I figure that it would be in some sort of do while loop unless anybody has a better Idea.
>
>Thanks in advance
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform