First - "Fields in the .csv might be formatted as either text or numeric"
Actually a CSV file is one version of a Text file. Consequently, EVERYTHING in it is a character representation.
Either:
* a character string value
* a character representation of a date
* a character representation of a Boolean (logical) value
* a character representation of a number (but not really)
You can always use FOPEN() with FSEEK(), FGETS() or FREAD() and FPUTS() or FWRITE() to manipulate the data within a file.
It is a slow method, but sometimes it is the best and/or only way.
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com