I would suggest that the path to views.txtdoes not apply to the working directory of the file. For security reasons, you should probably specify the full path to the file; those. /path/to/views.txt)
getcwd, , "views.txt" , , getcwd() . "/views.txt".