You forgot to open the file.