10-16-2025 01:19 PM
How do I convert a text file to a.CSV file
Solved! Go to Solution.
10-16-2025 02:01 PM
A CSV file is just plain text file with the convention that rows are separated by linebreaks and columns (typically) separated by commas.
What is the structure of your text file and what is the purpose of all this?
10-16-2025 02:06 PM
It's just the tab delimited measurement data file
10-16-2025 02:46 PM
I realize I just have to call it up in Excel, I was open you could give me just the extra bit where I would set it as a CSV file and save it
10-16-2025 04:28 PM - edited 10-16-2025 04:31 PM
All you need to do is read it as a string, replace all tabs with commas, then save it again.
Of course excel has no problem also reading tab delimited files directly. I still don't see the purpose of all this. Using a comma as column delimiter could get problematic if you share it with someone in a location where the decimal delimiter is also a comma.
10-16-2025 06:15 PM
@altenbach wrote:
Using a comma as column delimiter could get problematic if you share it with someone in a location where the decimal delimiter is also a comma.
It could also be a problem if you actually need a comma in a string value.
I'm with Altenbach. If all you need is something that can easily be opened by Excel, a tab delimited text file works just fine. I do it all the time.
10-17-2025 05:51 AM
10-17-2025 08:20 AM
Okay thank you very much to everyone I think I understand now
10-17-2025 10:15 AM
My intention with the following:
Open a text file as a CSV:
Then save the CSV
Result opens in memory as a CSV... Actual saved file is not in the CSV format.
10-17-2025 10:58 AM
Did you not like the solutions you already got?