BlueTheFurry Posted February 18, 2015 Share Posted February 18, 2015 Hello, i want to get the size of the file "test.dff", but the problem is, when i try to get it, it just throws me this error back: "[expected scriptfile at argument 1, got string "test.dff" ] my code: local theFile = "test.dff" fzb = fileGetSize(theFile) local fz = fzb/1024 Link to comment
JR10 Posted February 18, 2015 Share Posted February 18, 2015 fileGetSize takes in a file userdata variable, not a string. You need to use fileOpen first. local theFile = fileOpen("test.dff") fzb = fileGetSize(theFile) local fz = fzb/1024 Link to comment
BlueTheFurry Posted February 18, 2015 Author Share Posted February 18, 2015 Thanks, that did the trick Link to comment
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