Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Leer desde un archivo.txt
Message
De
19/06/2010 08:19:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/06/2010 17:56:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01469690
Message ID:
01469725
Vues:
19
>necesito saber como puedo leer o convertir un archivo.txt a un dbf

La sugerencia de Dmitry es apropiada. Sin embargo, para formatos de archivo más complicados podrías necesitar manipular bytes individualmente. En ese caso, puedes leer todo el archivo de texto a una variable, con la orden FileToStr(). Luego puedes separar eso en líneas, con alines() (cada línea irá a un elemento del array).

Alternativamente, puedes usar low-level file-functions para leer una parte del archivo a la vez.

Todo esto, es mejor evitarlo, o mejor dicho, reservarlo para los casos más complicados.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform