castlelord Posted January 29, 2018 Share Posted January 29, 2018 (edited) print("open") local hfile,msg = GLOBAL.io.open("./scripts_readme.txt", "a") if hfile then print("write") hfile:write("append")-- not work hfile:close() end print("open") local hfile,msg = GLOBAL.io.open("./scripts_readme.txt", "w")-- !!!attention scripts_readme.txt is cleared if hfile then print("seek") hfile:seek("end")-- force crash print("write") hfile:write("append end") hfile:close() end ... [00:00:02]: open [00:00:02]: write [00:00:02]: open [00:00:02]: seek end of file io.open() mode "a" is not work file:seek is crash without error message Edited January 29, 2018 by castlelord Link to comment https://forums.kleientertainment.com/forums/topic/86909-io-append-and-seek-can-not-be-use/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now