Computer Science Canada I keep getting this error... |
Author: | xmdxtreme [ Thu May 27, 2004 11:27 pm ] | ||
Post subject: | I keep getting this error... | ||
can someone help me with this problem plz
ok heres the problem when the file is empty it give a variable has no value error i dont want this to happen |
Author: | guruguru [ Fri May 28, 2004 3:12 pm ] | ||
Post subject: | |||
In the loop, you are assigning something to a variable that isnt there. Then you check to see if the file is empty. Put the "exit when eof (file)" line at the beggining of your loop and it should work perfect. As well, I don't think you need seek there, because you never use it. (Maybe you didnt post the full code... trickzy... :p).
|
Author: | xmdxtreme [ Fri May 28, 2004 8:13 pm ] |
Post subject: | |
thanks it worked and the seek part yeah i didnt paste the whole code just the part i needed help with |