Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append for few records
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00598952
Message ID:
00599012
Views:
22
>>>I would do
append from (m.tcFileName) delimited with tab
from command window and hit escape key.
>>>
>>Hi Sergey,
>>
>>I want to implement it in a program, so the user can decide, do we want to append or we need to adjust table structure. I'm thinking about low-level, but it seems like too much work...
>>
>< snip >
>Not really
lnFile = FOPEN(m.tcFileName)
>lcBuffer = FREAD(lnFile, 32*1024)  && 32K
>FCLOSE(lnFile)
>* Get read of the last incomplete record
>lcBuffer = LEFT( lcBuffer, RAT( CHR(13)+CHR(10), lcBuffer) + 1)
>Strtofile( lcBuffer, < temp file >)
>
Great, will do it on Monday. Happy Holidays to you and all UTrs!
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform