open file in c

view story

http://ubuntuforums.org – i want to open a file in c with this function int open( char *filename, int access, int permission ); but when file exist in other directory , i put path of file in first argument. but can not open the file. what should i do?! (i want to use only this function ) (Hardware)