file% = OPENIN("input.txt") strvar$ = "" WHILE NOT EOF#file% strvar$ += CHR$(BGET#file%) ENDWHILE CLOSE #file%