#include <stdio.h> int main() { int c; FILE *fp; fp=fopen("1.txt","r"); c=fgetc(fp); while(c!='\n') { putchar(c); c=fgetc(fp); } fclose(fp); return 0; }