Skip to main content

All Questions

Tagged with
1 vote
1 answer
58 views

Delete a string value in a CSV File with C#

I deleted my previous post in hopes this one is better and clear to be able to get help. I appreciate it. So far, with my code I am uploading a CSV file to format it as: I have skip the headers and ...
Ivonne Aspilcueta's user avatar
-1 votes
2 answers
127 views

How do I open with read-only mode while saving csv file?

In C#, my program creates *.csv file. And append data to this file every 1ms. While append data, when I open *.csv file, this error occurs I JUST want to open "ONLY READ MODE" while append ...
BobKim's user avatar
  • 9
0 votes
3 answers
398 views

C# MemoryStream csv file not writing

I'm writing something that will create a .csv file in memory and email it as an attachment. The code below successfully emails a .csv file, but it is empty. I'm sure I'm missing something simple... ...
Jeffrey Van Laethem's user avatar
1 vote
2 answers
369 views

Improve saving to CSV file (C#)

I'm writing column data to CSV file: string sep = CultureInfo.CurrentCulture.TextInfo.ListSeparator; string csvFile = "MyName.csv"; using (StreamWriter writer = new StreamWriter(csvFile)) { ...
4est's user avatar
  • 3,118
-1 votes
1 answer
150 views

StreamWriter is not adding empty cells correctly

I have a C# program that is supposed to generate an output that looks like this: However, my output currently looks like this: This is what my code looks like at the moment: System.Text.Encoding....
Ford Burgess's user avatar
-1 votes
1 answer
1k views

How to ignore special characters in string while writing to CSV in c# [duplicate]

I am using StreamWriter to write records in csv Data = "abcd+ " , " + "Error + " , " + result.Message; using (StreamWriter streamWriter = new StreamWriter("c:/temp/...
Kavita Korgaonkar's user avatar
-1 votes
2 answers
1k views

StreamWriter writes all data into 1 Column in CSV file

using (StreamWriter sw = File.CreateText("D:\\Data.csv")) { foreach (var test in data) { sw.WriteLine(test.A.ToString()+','+test.B.ToString()); } } test.A and ...
Etana's user avatar
  • 19
0 votes
2 answers
314 views

C#, windows form, StremWriter, Header line

I am trying to add a header in my running csv file log. This is what I want, Project Name, Project SN, Project Build < first Row that will never change, unless file was deleted. In that case create ...
Jabir's user avatar
  • 81
0 votes
0 answers
31 views

How can I write to the column I want with StreamWriter? [duplicate]

I've a table like the one below. I check my data in "column 1(TC)" with the algorithm. I want to show the "true or false" values in "column 7(Kontrol)". How can I do that?...
Nuri's user avatar
  • 11
0 votes
2 answers
359 views

StreamReader failing to read second line

I am using a StreamReader to read out the Username and Password from a .csv file (I'm just trying this out because I'm new to C#). For some reason, if I press sign in it works for the account in the ...
Engin's user avatar
  • 9
0 votes
1 answer
276 views

How to create multiple CSV file in ASP .Net

I want to create multiple CSV file for every drop down Selected value. Even-though while debugging i can notice csv is appending for different drop down value but not writing another CSV file. do not ...
Nitish Kumar Patel's user avatar
-1 votes
2 answers
680 views

What delimiter can be used for .csv that has "," in it's column

I want to read .csv file and write to other .csv file. I use streamwriter and use string.split with delimiter (','). using (StreamWriter file = new StreamWriter(destFile, true)) { ...
irham dollah's user avatar
0 votes
1 answer
37 views

Why certain row shows different column's data in c#?

I want to write certain column from input file to the output file. My code looks like this: try { using (StreamWriter file = new StreamWriter(@"outputfile.csv", true)) ...
irham dollah's user avatar
1 vote
1 answer
277 views

Join one-dimesional array to write over a CSV file with multiple records

I am at the final step of a Save function and I need help figuring out how to structure the data back into the format of my CSV so that I can write over the original. This is a link to my other code/...
ElloWorld's user avatar
1 vote
2 answers
962 views

c# and Unity, update records that have changed to a CSV file

I'm trying to work with a CSV file that is essentially a database of records. On load of the game I Read in a record and instantiate a prefab button, one at a time with the correct text from the CSV ...
ElloWorld's user avatar

15 30 50 per page
1
2 3 4 5