wrong filename fixed. also probably better to listen if the file closes rather than read