WriteToFile saving, simple and not optimized yet