parse arg fileName -- get file name from command line if fileName="" then fileName="test.txt" -- if no file name given, use this as default do while lines(fileName)>0 say linein(fileName) -- read and show line end call stream fileName, "command", "close"