Hi - I'm using the open() function to open an existing file on linux. I keep getting a failure return value (-1 in this case) when trying to do so:
The file exists and I have permissions on it. This is driving me crazy - I'd appreciate any help on this - thanks.Code:int result = open("/tmp/my_file" , O_RDONLY);