Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leer desde un archivo.txt
Message
From
19/06/2010 08:19:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/06/2010 17:56:10
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01469690
Message ID:
01469725
Views:
23
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform