My bad. I thought you could open a file for input and output at the same time. Nevermind. My first point is still valid tho.