#include<stdio.h>

#include<stdlib.h>


int main(void){

    FILE * fp = NULL;

    char c;    //接收字符

    //open file 此处最好判断一下File是否打开成功

    fp = fopen("C:\\Documents and Settings\\Administrator\\桌面\\text.txt","rwb");

    do{

        c = getc(fp);

        printf("%c",c);

        }while(c != EOF);

    fp.close();

    printf("\n");

    return 0;

}