Shadow Ozera wrote:How would i use that one?
What?
You're just specifying where the file, in the case
cat.txt is. You can do so using a relative path, meaning a path relative to the folder that you are in. This is what you've attempted in your OP - you're telling your program to look for cat.txt in the same folder that the program itself is in. If you're not sure where cat.txt is relative to the program you can use an absolute path, which is the path irregardless of the folder. For example, say that you are on the page
www.site.com/folder/subfolder/page.php and you want to get to anotherPage.php, which is in subfolder. You can use the relative path, which would be
./anotherPage.php, or you can use the absolute path, which would be
www.site.com/folder/subfolder/anotherPage.php The . character means current folder, .. means move up one folder. If you want to make things very simple just put cat.txt in you C: drive and then use the path C:\\cat.txt