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:
with
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...
you can do this by simply declaring a public string (say strFileContents ) and then replace:
Code:
line = srcFile.readLine();
Code:
strFileContents += srcFile.readLine()+"\r\n";
EDIT: Just took a more in depth look at your code. If this solution works, your alignment might mess up a little...
Comment