Aof file parsing and saving