Page 1 of 1

return fail/success for File Reading,. .

Posted: Thu Jan 15, 2009 4:58 pm
by jph_wacheski
if no file is found I would like to create the default data,. in this way the single exe file can generate files when they are not yet there and if they are it will read and use the data in the file,. currently I see no way to find if the file was read successfuly or not, is there a way? if not perhaps the FileAction component could have a value that is -1 when failed,. or 0 when successfull,. .
lockOn now saves its settings, but needs to have a default file distributed with it.

Posted: Thu Jan 15, 2009 6:11 pm
by VilleK
I'll try to find a better solution with a error code or something.

Meanwhile a workaround: if the file is empty the variable will not be assigned with the FileMoveData-component. So if set the variable to -1, then FileMoveData, then use the value if the variable is different to -1.