المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Streamreader, Stringbuilder, and Stream or Stringwriter



C# Programming
01-05-2010, 01:30 PM
I have done plenty of googling and have gotten close to a solution but wanted to make sure I'm going about it the right way.

I have a data file which is a non delimited fixed field position file that has missing data. I basically want to read each line in and determine if a certain field is blank. If so I use another field in that same record to retrieve the missing data from the database. After getting the missing value I would like to use StreamWriter or StringWriter (not sure which) to write out each line to a new file with the updated field value.

Appreciate any advice you all may have on this subject.

Thanks,
Jason