All Questions
Tagged with streamwriter csv
71
questions
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 ...
-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 ...
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...
...
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))
{
...
-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....
-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/...
-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 ...
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 ...
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?...
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 ...
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 ...
-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))
{
...
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))
...
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/...
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 ...