2013년 5월 7일 화요일

[ C++ ] 파일 쓰기 샘플

C++
파일 쓰기 간단 샘플


#include <fstream>

int main()
{
std::ofstream ofs;
ofs.open( "test.txt" );

ofs << "testmessage" << 777 << std::endl;

ofs.close();
return 0;
}

댓글 없음:

댓글 쓰기