블로그는 나의 힘!
[ Programing ]/C++2009. 12. 24. 00:12

[파일 저장하기]  pFile = fopen( "Critical.mfb", "wt" );    fprintf( pFile, "%d ", m_nState );    fclose( pFile );     
 ====================================================================================
 File* m_pFile = fopen( "Critical.mfb", "wt" ); 

 fprintf( m_pFile, "%d ", m_nState );
 fclose( m_pFile );

// 파일 저장 하기
// fprintf()로 저장할 데이터 넣는다.



- 파일 저장하기. fopen("대상", "wt"), fprintf(), fclose() 핵심이다.
Posted by Mister_Q