I am trying to write into a csv file row by row using C# language. Here is my function
string first = reader[0].ToString();
string second=image.ToString();
string csv = string.Format("{0},{1}\n", first, second);
File.WriteAllText(filePath, csv);
The whole …
I am serializing an structure into a MemoryStream and I want to save and load the serialized structure.
So, How to Save a MemoryStream into a file and also load it back from file?