File reading working, but not replacing