fopen fgets strcpy sprintf
GeSHi © 2004-2007 Nigel McNie, 2007-2010 Benny Baumann, 2008-2009 Milian Wolff #include #include int main(int argc,char** argv) { char* FileName = argv[1]; FILE* file = fopen(FileName,"r"); if(!file) perror("error : file open error\n"); char s[256]; for(;fgets(s,100,file);) { char* k=s; char buf[256]; for(k=s;*k;k++) if(*k==',') { strcpy(buf,k+2); sprintf(k, "\", \"%s",buf); break; } for(k+=2;*k..
2011. 11. 22.