at slow speed file systems (aka, flash) is need file:flush() after file:write() alter file:setvbuf('no') to avoid partial file writing a usefull option flag to_append (to write at end of file) thanks!