Question:
Convert C# Project to CSV File.?
anonymous
2009-02-02 00:09:35 UTC
I have done a project in Visual Studio C# Express. I need to convert it to .csv file. How do I do that? is there any software that does that or I can save it to .csv file using Visual Studio itself?
Three answers:
anonymous
2009-02-02 00:54:08 UTC
Instead of saving the file as a .txt save it as a .csv It's not that complicated.
oracle128au
2009-02-02 00:30:06 UTC
CSV is used for tabular data. Like in a spreadsheet or a database. I'm not sure how you expect to be able to represent C# source code in a tabular format, that makes no sense whatsoever.



Edit: That makes a little more sense.

A CSV file is just a plain text file with comma-separated values. The specification is defined by RFC 1480.

If your data is not in CSV format, you need to code it so it is. If it already is, you merely need to change the extension of your output file.
?
2016-05-28 04:32:23 UTC
PERL is an excellent way to make these type of changes and is available for most operating systems. #!/usr/bin/perl while (<>) { @a = split(/,/ $_); foreach $b (@a) { $c = "\"$b\","; chop $c; # remove final comma print $c; } }


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...