decl file f f.open "filename.txt" while (f.hasnext) out (in string f) endl console end while