Append text to RTF file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deshi

    Append text to RTF file

    Hi,.

    I am trying to append text into the RTF file, nothing seems to be
    working for me... here is the code

    FileStream fs = new FileStream("c:\ \djj.rtf", FileMode.Append ,
    FileAccess.Writ e);
    StreamWriter sw = new StreamWriter(fs );
    sw.WriteLine("A ppending this text at the end of the file");
    sw.Close();
    fs.Close();

    it works well with the normal text file but not for RTF, does anyone
    know how to append text at the end of the RTF file..
  • Munna

    #2
    Re: Append text to RTF file

    On May 29, 3:32 pm, Deshi <desh...@gmail. comwrote:
    Hi,.
    >
    I am trying to append text into the RTF file, nothing seems to be
    working for me... here is the code
    >
    FileStream fs = new FileStream("c:\ \djj.rtf", FileMode.Append ,
    FileAccess.Writ e);
    StreamWriter sw = new StreamWriter(fs );
    sw.WriteLine("A ppending this text at the end of the file");
    sw.Close();
    fs.Close();
    >
    it works well with the normal text file but not for RTF, does anyone
    know how to append text at the end of the RTF file..
    Hi heshi

    checkout this article



    Munna

    Comment

    Working...