I suspect the reason is that the fields in the first row are wider than 254 chars, so the driver makes the fields in the first row into memos, and all the other fields follow suit.
But do you have any special reason for doing this? It would be much easier to APPEND FROM or IMPORT the CSV file into a table or cursor.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Low level file functions would be much faster. I usually read an input file and output a modified file. If you want to replace the original after it'd be the same as modifying.
Take a look at my FAQ Transform a Partially Formatted Delimited Text File Into a Standard Delimited File faq184-4275 and modify as you see fit.
I don't think so. I believe the driver will treat it as read-only (but I'm not completely sure).
Again, I think it would be easier to import it into a table, modify it there, and write it out to a text file again. Or, bring the whole file into a string (using FILETOSTR()), then use VFP's string-handling functions to make your changes, then write it out again.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.