文件的打开与读写

#define GLOBAL
#include "public.h" 
#include "global.h" 
int main(void)
{

char y = 1;

int op = 1;
 
FILE *operation1 = NULL;
errno_t err;
err = fopen_s(&operation1, "C:/Users/in/Desktop/123.txt", "r");
y=fgetc(operation1);


printf("%c",y);
for (; 1;);
}

你可能感兴趣的:(C语言)