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