Converting text file to JPG file-help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • talcodes
    New Member
    • Oct 2008
    • 5

    #16
    Might not work, but have you tried storing the entire contents of the file into a String?

    you can do this by simply declaring a public string (say strFileContents ) and then replace:

    Code:
    line = srcFile.readLine();
    with

    Code:
    strFileContents += srcFile.readLine()+"\r\n";
    Actually I'm not too sure if the breakline escapes are needed or not...just find out by trial and error I suppose.

    EDIT: Just took a more in depth look at your code. If this solution works, your alignment might mess up a little...

    Comment

    Working...