Skip to content

Instantly share code, notes, and snippets.

@jwatte
Last active August 29, 2015 14:13
Show Gist options
  • Save jwatte/4bf31e6e1309890fbd72 to your computer and use it in GitHub Desktop.
Save jwatte/4bf31e6e1309890fbd72 to your computer and use it in GitHub Desktop.
IMVU CSV file data
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 13.
Raw data:
=========
1,2,5\n
3,4,9
Expected:
2,3,7
0,1,2\n
3,,5,6
0,,1,2\n
3,,5,6\n
Java style:
===========
static String input = "1,2,5\n"+
"3,4,9";
static String input = "0,1,2\n"+
"3,,5,6";
static String input = "0,,1,2\n"+
"3,,5,6\n";
PHP style:
==========
$input = "1,2,5\n".
"3,4,9";
$input = "0,1,2\n".
"3,,5,6";
$input = "0,,1,2\n".
"3,,5,6\n";
C++ style:
==========
char input[] = "1,2,5\n"
"3,4,9";
char input[] = = "0,1,2\n"
"3,,5,6";
char input[] = "0,,1,2\n"
"3,,5,6\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment