Hi, i have a problem. i have a file that there is a line in the file : #include "hello.h" i have to open the "hello.h" file and copy it to another file. i did : char getline[MAX_LINE]; char *fp1; fp1 = strchr(getline2,'#'); /* fp1 = #include ..., taking the include from the line */ fp1 = strchr(fp1,'"'); /* fp1 = "hello.h" */ FILE *file = fopen(fp1,"w"); the file hello.h is in the main libary and the file not opened. i hope i was understandable, and if someone can help me i`ll appreciate it. Thanks, Or.