Can you please explain in more detail what the problem is?
Note that in line 38-40 you are skipping the first 4 lines of the file you are reading.
Thank you for the reply..I am converting a Text File an e-statement To pdf. The first Few lines are the header and even there the first Line is getting skipped. The loop at line 38-40 is for reading a particular line(the account number) so that I can use the first two and the Last two digits as the password for the Pdf Document. The document is converting fine But the account number which is the 5th Line is not being read by the program. In the other loop at 97-99, the program is not reading a line (line number 20). I hope I have made myself clear this time. I am reading sections of the text File and everytime I read a certain section, the first Line of that section is getting Skipped. For example the details of the e-statement start from line 20. Please help.
subject: My program is not reading the first Line of a text file..What could be the issue: Here is the code: