Notice
Recent Posts
Recent Comments
Link
목록fwrite (1)
공학박사 권경안
[C언어] 텍스트 파일 읽어(fread) 개행문자(\n) 제거한 후 파일 쓰기(fwrite)
batch 파일로 SQL 을 돌릴때 multi line query 작동하기 위해 만들었습니다. read.txt 파일안에 다음과 같이 있습니다.insert into SCHOOL values(100, 'SEOUL','AAA');insert into SCHOOL values(200, 'BUSAN','BBB'); 결과 파일은 다음과 같겠습니다.insert into SCHOOL values (100, 'SEOUL','AAA');insert into SCHOOL values (200, 'BUSAN','BBB'); ...read 파일은 이미 읽었다고 가정한후... long lSize;char * buf;char *p;size_t result; // Get total size of filefseek (fp , 0 , ..
Programming
2012. 4. 22. 02:46