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 i=1 to 15 -- append 15 lines call lineout fileName, "Das ist die Zeile #" i end call lineout fileName -- close file