~cpp #include <iostream> using namespace std; int main() { FILE *fpt; fpt = fopen("test.txt.", "w"); // test.txt write fprintf ( fpt , "Hello World!") ; fclose(fpt); // fopen 과 fclose ! system("pause"); return 0; }
~cpp #include <iostream> using namespace std; int main() { FILE *fpt; fpt = fopen("test.txt.", "w"); // test.txt write fprintf ( fpt , "Hello World!") ; fclose(fpt); // fopen 과 fclose ! system("pause"); return 0; }