1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main(void) { FILE * fp; fp = fopen("data.txt", "w"); if (fp == NULL) { printf("data.txt ÆÄÀÏÀ» ¿ ¼ö ¾ø½À´Ï´Ù."); exit(1); } fputs("This is an house.", fp); fseek(fp, 11, SEEK_SET); fputs("apple", fp); fclose(fp); return 0; } | cs |