Input past end of file error - TechRepublic
Question
November 1, 2008 at 02:55 AM
vipul.baijal

Input past end of file error

by vipul.baijal . Updated 17 years, 8 months ago

Hi All

I am writing a code in ASP to read one line at a time from an encrypted file. The line is read, then decrypted using a function & then asigned to a string variable.
I am repeatedly getting the following error.”Input past end of line”, even though there are 4 more lines after the line which I am reading.

My code is something like this:-
If IntCPVO > 0 Then
WHILE (Cint(CntCounter) <= Cint(IntCPVO)) if (temp1="") then strS = Crypt(fsUploadFile.ReadLine()) else strS=temp1 temp1="" end if char_right=trim(right(strS,1)) arr_strS3 = Split(strS,"|") int_len_of_pipes=ubound(arr_strS3) do while (int_len_of_pipes<>46 or char_right=”|”)
(Error comes on next line)
temp1 = trim(Crypt(fsUploadFile.ReadLine()))

if (int_len_of_pipes=46 and char_right=”|”) then
if instr(1,temp1,”|”)>0 then exit do
end if

strS = strS & temp1

Kindly advise

Regards & Thanks

This discussion is locked

All Comments