I am trying to get a simple html file to display but I cannot get the file to actually open. I have the file in the same place as my program files but it will not open. Is it a problem with my code or is it something else?
> Where does the .txt file need to be saved in order to open it?
If you simply write `test', then the file ought to be in the current working directory.
Note that the `working directory' is not the same as the `directory where the executable is in'.
$ ls /usr
bin include lib local sbin share src
$ cd /usr
$ pwd
/usr
$ ls
bin include lib local sbin share src
$ /usr/bin/ls
bin include lib local sbin share src
$ bin/ls
bin include lib local sbin share src
`ls' resides in `/usr/bin/', however the runs refer to `/usr' because that's the current working directory (as showed by `pwd')
I had same problems in past. My mistake was not adding .txt or .xl or whatever file I was trying to open. i.e. lets say your "test" file is a text document. so you need to enter input like this: test.txt