Search found 2 matches
- Wed Jan 08, 2025 8:13 pm
- Forum: Support and Development
- Topic: love.filesystem.lines is closing the file when it reaches the eof?
- Replies: 3
- Views: 290
Re: love.filesystem.lines is closing the file when it reaches the eof?
Potentially related, I'm starting to wonder if this is a Windows 11 issuee. I recently had to upgrade and now it sometimes calls a resize event (love.resize) if I click out of the game window and click back in, yet it passes NO values into the resize event (w and h are nil). So it'll crash if I don'...
- Tue Jan 07, 2025 1:38 am
- Forum: Support and Development
- Topic: love.filesystem.lines is closing the file when it reaches the eof?
- Replies: 3
- Views: 290
love.filesystem.lines is closing the file when it reaches the eof?
I didn't see it in the documentation and I am wondering if this is expected behavior. function love.load() local file = love.filesystem.newFile("example") local ok, err = file:open("r") if not ok then assert(ok, err) end print("Is file open: "..tostring(file:isOpen())) ...