[ Programing ]/C++
[ 기초 ] 파일 저장하기 fopen(); fprintf(); fclose();
Mister_Q
2009. 12. 24. 00:12
[파일 저장하기] pFile = fopen( "Critical.mfb", "wt" ); fprintf( pFile, "%d ", m_nState ); fclose( pFile );
====================================================================================
File* m_pFile = fopen( "Critical.mfb", "wt" );
File* m_pFile = fopen( "Critical.mfb", "wt" );
fprintf( m_pFile, "%d ", m_nState );
fclose( m_pFile );
// 파일 저장 하기
// fprintf()로 저장할 데이터 넣는다.
- 파일 저장하기. fopen("대상", "wt"), fprintf(), fclose() 핵심이다.
- 파일 저장하기. fopen("대상", "wt"), fprintf(), fclose() 핵심이다.