| [ CnUnix ] in KIDS 글 쓴 이(By): wshan (같은예감) 날 짜 (Date): 1996년01월19일(금) 23시02분43초 KST 제 목(Title): [A] Linux에서 fromdos 명령어.. 13번을 없애면 되죠.. 그게 아스키번호로 13번이에요.. 간단하니까 소스 프로그램을 컴파일하세요.. #include <stdio.h> main(int argc,char **argv) { FILE *in,*out; int ch; if((in=fopen(argv[1],"r"))==NULL) { printf("Cannot openi %s\n", argv[1]); exit(1); } if((out=fopen(argv[2],"w"))==NULL) { printf("Cannot open %s\n", argv[2]); exit(1); } while(!feof(in)) { ch = fgetc(in); if(ch!=13) fputc(ch,out); else fputc('\n',out); } fclose(in); fclose(out); } Usage: a.out source destine 요렇게 사용하세용.. 그럼 |