3.1 File Input and Output

The file will be edited correctly now, previously the file scope was
wrong.