hi all,
i have a function that needs to read the contents of a file. it looks for the file in the current directory, which can vary in name in location. if it doesn't find it, then it needs to look in a sub folder that will always be there with the name pp98. i tried refering to this relative absolute location as ".\\pp98\\file.txt", "..\\pp98\\file.txt", "\\pp98\\file.txt" and "pp98\\file.txt". none of them work.
is there no way to reference the file without specifying a complete path? if i must specify a complete path to get this to work, how to i determine the current location?
thanks,
glenn
i have a function that needs to read the contents of a file. it looks for the file in the current directory, which can vary in name in location. if it doesn't find it, then it needs to look in a sub folder that will always be there with the name pp98. i tried refering to this relative absolute location as ".\\pp98\\file.txt", "..\\pp98\\file.txt", "\\pp98\\file.txt" and "pp98\\file.txt". none of them work.
is there no way to reference the file without specifying a complete path? if i must specify a complete path to get this to work, how to i determine the current location?
thanks,
glenn