Search Results

Search found 1 results on 1 pages for 'bishal'.

Page 1/1 | 1 

  • Reading doc file using streamreader

    - by Bishal
    I am trying to read .doc/.docx file with stream reader, but it give me output as unspecified character ie. ??[ ?L?f???C???. I'm writing the file using a text editor. Here's a snippet of my code: string filePath = baseUrl+ "Sample.docx"; using (StreamReader reader = new StreamReader(filePath, Encoding.UTF8)) { txtBody.Text = reader.ReadToEnd(); } I'm using VS 2010. Thank you.

    Read the article

1