Input past end of file error

By vipul.baijal ·
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())
end if


arr_strS3 = Split(strS,"|")

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 conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Answers

Back to Software Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums