IsOk (File)
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{FileMethod| file:isOk() | Checks if a ReadFile is in "ok" status. | {{NoParams}} | Returns true if the file has been opened and can be read from. }} === Example === <pre> lo...')
(Created page with '{{FileMethod| file:isOk() | Checks if a ReadFile is in "ok" status. | {{NoParams}} | Returns true if the file has been opened and can be read from. }} === Example === <pre> lo...')
Latest revision as of 18:43, 7 February 2010
file:isOk() | ||
Checks if a ReadFile is in "ok" status. | ||
Parameter | Expected Type | Description |
No parameters | ||
Returns | ||
Returns true if the file has been opened and can be read from. |
DaisyMoon File Objects |
---|
Example
local file = ReadFile("myfile.dat", "f") if file:isOk() then -- read bunch of stuff file:close() end -- you don't need to close files that aren't ok