#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//이름 abc 주소 def123 주민 456-789
int main(void)
{
int state;
FILE * file = fopen("ex1.txt","wt");
fprintf(file, "이름 = %s, 주소 = %s, 주민 = %s", "abc","def123","456-789");
fclose(file);
system("pause");
return 0;
}
// 컴파일러 dev c++
'개인 > 프로그래밍' 카테고리의 다른 글
가벼운 마음으로 배워보는 c언어, 이진검색예제 (0) | 2025.01.10 |
---|---|
열혈강의 c 연습문제 24-1 (2) (0) | 2016.12.22 |
열혈강의 c 연습문제 21-2 (2) (0) | 2016.12.22 |
열혈강의 c 연습문제 21-2 (1) (0) | 2016.12.22 |
열혈강의 c 연습문제 21-1 (0) | 2016.12.22 |