File operations are now const