1.파일을 연다
2.파일을 읽는다
3.읽은 데이터를 메모리에 복사한다.
4.파일을 닫는다.
이렇게 하시면 되구요..
관련함수로는 fopen, fread, fclose 함수를 man페이지나 msdn에서 참고하시면 됩니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
처음 실행할 때 txt
처음 실행할 때 txt 파일이 있나 확인하고 있으면 읽고
없으면 만들면 되지 않을까요?
1.파일을
1.파일을 연다
2.파일을 읽는다
3.읽은 데이터를 메모리에 복사한다.
4.파일을 닫는다.
이렇게 하시면 되구요..
관련함수로는 fopen, fread, fclose 함수를 man페이지나 msdn에서 참고하시면 됩니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
댓글 달기