I am using cUrl to download a file we will call LIST.txt
It is a tab delimited file. I want to convert it to a comma delimited file we will call LIST.csv that I already have setup to be read into a few tables.
What is the easiest way to do it?
Use [man]fgetcsv/man to read the file and [man]fputcsv/man to write the data into the new file using the desired delimiter.
Doesn't fgetcsv read csv files? The file is tab delimited... I want to make it csv.
Read the manual for [man]fgetcsv/man - you can specify how the data is delimited.
Gotcha.. That may work then. What would I use as the delimiter for the tab?
I think tab is char 9????
In double quotes, "\t" indicates a tab.