use "with" statement when opening GIFTI file