So ive ask a question early , heres the link : What is the value between a part of txt and another part of txt?
So to find out what character or value it is , i wrote a code that will printf "used" if it gets the value, heres the code :
char buffer[50];
FILE *fr = fopen("data.txt", "r");
fgets(buffer, 49, fr);
printf("test%stest", buffer);
if(buffer == '\0'){
fclose(fr);
fr = fopen("data.txt", "r");
printf("\nUsed\n");
}
'\0' is just an example, i tried to use all "control character" from here : Rules for C++ string literals escape character and the program still didnt print out "used", so im sooooo curious that what value is in the lines just like the question i asked earlier, or maybe i code the program that wrong.