Click here to Skip to main content
15,919,613 members

Comments by Member 10654601 (Top 3 by date)

Member 10654601 30-Mar-14 10:51am View    
Thanks Mike!

I'll see if I can make this work!

Nick
Member 10654601 17-Mar-14 13:37pm View    
Hey All!

Just circling back to let you know I have my little program working great!
Thanks for all the help!
Member 10654601 9-Mar-14 9:07am View    
Hey Careful Coder!
I used your suggestion and it seems to be working perfectly!
StreamReader rdr = new StreamReader("<pathtoyourmasterfile>");
string master = rdr.ReadToEnd();
rdr.Close();

rdr = new StreamReader("<pathtoyournewdatafile>");
string newdata = rdr.ReadToEnd();
rdr.Close();
rdr.Dispose();

//The New Data .csv file will have headers. Need to remove those.
newdata = newdata.Substring(newdata.IndexOf('\n') + 1);

StreamWriter wtr = new StreamWriter("<pathtoyourmasterfile>");
wtr.Write(master + "\r\n" /*That \r\n may or may not be necessary*/ + newdata);
wtr.Close();
wtr.Dispose();

Thank you!

How fun to have this happen automatically! I hope this continues to be fun as I adjust and finish building this project out.

This is a great resource and I appreciate everyones input.

Nick