Instead of some notepad , why don't you create text files...
For writting , should be a formula , like :
(( TEXT File size in kb ) / RAM Nº[MB] ) - ((Ram nº * 0.1 )*CPU Nº))
Text file size : The size of the file
CPU Nº : You may chose how much CPU do you want to use to save the file
RAM Nº : You may chose how much RAM you wanna use to save the file
File size formula :
0 ~ 255 characters 32 characters pack = + 128 kb
( each single character = 5 kb )
256 ~ 1023 characters32 characters pack = + 96 kb
( each single character = 4 kb )
1024 ~ 32768 characters32 characters pack = + 64 kb
( each single character = 3 kb )
And pick the number times 64
So , for example ; read this text :
Hello
It have less than 256 characters , so the 32 characters pack is 128 kb and single character is 5 kb
it have 5 characters ; so , it is worth " 25 kb * 64 " = 1600 kb
1234567890123456789012345678901234567890
It have 40 characters;
so , it is a 32 characters pack + 8 single characters = 168 kb * 64 = 10752 kb
1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890
It has 285 characters
285 / 32 = 8 characters pack + 29 single characters = 768 kb + 116 kb = 884 kb * 64 = 56576 kb
So, let's say we save the last document ( 285 characters )
we tell the pc to use 100 Mhz CPU and 32 mb ram
(( 56576 / 32 ) - (( 32 * 0.1)* 100))
(1768 - 320 ) = 1448 seconds = 24 mins ( and some seconds )
Minimun should be 20 seconds or 30 seconds or 1 min...
WEll... read this slowlly and you may understand