csharp, file-handling, csv, data-manipulation, streamwriter
main.cs1634 chars49 lines
Note that in the above code, we are using a StreamReader
and StreamWriter
to read and write data from and to the CSV files respectively. We are also manipulating the CSV data by adding a new column with either "Yes" or "No" based on some logic inside the GetNewColumnValue
method. Once the data is updated, we write it to a new CSV file in the destination folder using the StreamWriter
.
gistlibby LogSnag