Posted 13 April 2013 - 07:01 PM
My proposal is to have a directory such as "\mem", or whatever you come up with, that is volatile, that is, only persistent while the computer is on and loaded.
My reason for it is I want to be able to translate my file to npaintpro/paint's filetype.
(My file is around four times smaller than the native npaintpro filetype, as it saves each pixel as four bits of a byte, instead of two bytes like npaintpro does.)
I don't want a big ugly error when someone fills their drive with only a few remaining bytes left for use, or if the maximum size is weirdly low, so if there is volatile memory, it doesn't even save to the computer and will be simply stored in memory until the computer is either unloaded or turned off.
EDIT: I'm going to translate it, then write it to a file and call npaintpro with the file as the argument, then translate it back to my filetype and write to the original file my program was called with
My reason for it is I want to be able to translate my file to npaintpro/paint's filetype.
(My file is around four times smaller than the native npaintpro filetype, as it saves each pixel as four bits of a byte, instead of two bytes like npaintpro does.)
I don't want a big ugly error when someone fills their drive with only a few remaining bytes left for use, or if the maximum size is weirdly low, so if there is volatile memory, it doesn't even save to the computer and will be simply stored in memory until the computer is either unloaded or turned off.
EDIT: I'm going to translate it, then write it to a file and call npaintpro with the file as the argument, then translate it back to my filetype and write to the original file my program was called with
Edited on 13 April 2013 - 05:28 PM