I am wanting to change a text file to a csv file,it is on a unix box if thats any help,at the moment I print out the txt file but want to export it to ms access,any help would be appreciated
I am wanting to change a text file to a csv file,it is on a unix box if thats any help,at the moment I print out the txt file but want to export it to ms access,any help would be appreciated
>I am wanting to change a text file to a csv file
Replace the spaces delimiting fields with commas. If you want to go further then search google for common CSV standards and reformat your file accordingly.
-Prelude
My best code is written with the delete key.
> I am wanting to change a text file to a csv file
Code:#include <stdio.h> int main ( int argc, char **argv ) { char buf[1024]={0}; sprintf( buf, "%s.cvs", argv[1] ); if ( !rename( argv[1], buf ) ) printf("Ok, '%s' is now a .cvs file. :D\n", argv[1] ); else printf("'%s' could not be renamed.\n", argv[1] ); return 0; }
Quzah.
Hope is the first step on the road to disappointment.