I guess you run into the problem of not being able to open the file.
This is because you need to escape special characters in strings, such as backslash. So your path correctly escaped would be:
FILE * fp = fopen("C:\\123.txt", "r");