in reply to Re^2: Delete txt file in a previous file
in thread Delete txt file in a previous file

The current working directory is not necessarily the same directory as where your program is stored. This is a common problem when running on web servers. Don't use relative path names (like ../) use absolute path names instead.
  • Comment on Re^3: Delete txt file in a previous file