Learning to save data in file system