Computer Science Canada

WAt this error??

Author:  kanye_west_owns [ Thu May 20, 2004 5:47 pm ]
Post subject:  WAt this error??

Guys im getting this error:

"Eof attempted on incompatible stream number 1. "

ne1 know wat it means, it gives me the error on this code line

code:

          loop
        get : temp, skip
        exit when eof (file)
        get : temp, snew : *
        put : file, snew
    end loop

Author:  Dan [ Thu May 20, 2004 6:26 pm ]
Post subject: 

it means there is nothing left for it to read in that file. Try somting like this:

code:

     loop
        exit when eof (temp)
        get : temp, skip
        exit when eof (temp)
        get : temp, snew : *
        put : file, snew
  end loop


you do not tneed the eof for file, u need it for temp, b/c temp is the reading of the file and put is making it.


: