Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = { ... }
- tArgs[1] = plik
- function loadFile( fileName )
- -- Open an existing file in read ("r") mode.
- local fileToLoad, errorMsg = io.open( fileName, "r" )
- if errorMsg ~= nil then
- print( "\nError calling loadFile() - io.open() failed with: " .. errorMsg .. "\n" )
- return
- end
- for line in fileToLoad:lines() do
- print( line )
- end
- fileToLoad:close()
- end
- print( "Loading file!" )
- loadFile( plik )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement