#include /* csv2html < file.csv > file.html */ int main(int argc, char *argv[]) { int s; printf("\n"); while ((s = getchar()) != EOF) { switch(s) { case '\n': printf("\n"); break; case ';': printf(""); break; case '<': printf("<"); break; case '>': printf(">"); break; case '&': printf("&"); break; default: putchar(s); } } puts("\n"); return 0; }