You're safest moving the text file outside of yoru webspace altogether. For example, if your website's home dir is
/usr/www/yourname/httpd/htdocs
you should create a directory called something like
/usr/www/yourname/securetexts/
you can then store your files in there, happy in the knowledge that they can't be surfed to.
Then just change your script to look in that directory for the file, and check to make sure that the script is called from the page(s) you expect before accessing the file, and you should be quite secure.
Cheers,
Jack
(Free PHP Hosting till the end of the year - www.combustion.ie)