Move file alteration code from the cursor class to the file class