none
Cannot read all content from a file RRS feed

  • Question

  • Hey,

    I'm trying to read contents from an encrypted file but it does not work for me.

    I've tried both

    System.IO.File.ReadAllText(sFilePath)

    and 

    Dim oReader as System.IO.StreamReader = New System.IO.StreamReader(sFilePath)
    Dim sDummy as String = oReader.ReadToEnd()
    oReader.Close()

    yet, I get truncated data from the file. The last few characters are always left off!

    Please help.


    Tuesday, August 28, 2012 6:03 AM

Answers