T
Thomas Heiz
Which method is the best to read a RTF File in C#?
StreamReader sr = new StreamReader(filename,
System.Text.Encoding.GetEncoding(1252));
while((rtfContent = sr.ReadLine()) != null) { builder.Append(rtfContent); }
sr.Close();
Is it better to read a RTF file with sr.ReadLine() or sr.ReadToEnd(). The
result isn't the same, why?
Thanks for the help
Thomas Heiz
StreamReader sr = new StreamReader(filename,
System.Text.Encoding.GetEncoding(1252));
while((rtfContent = sr.ReadLine()) != null) { builder.Append(rtfContent); }
sr.Close();
Is it better to read a RTF file with sr.ReadLine() or sr.ReadToEnd(). The
result isn't the same, why?
Thanks for the help
Thomas Heiz