Skip to content

Instantly share code, notes, and snippets.

@sunimalr
Created March 30, 2014 07:09
Show Gist options
  • Save sunimalr/9868862 to your computer and use it in GitHub Desktop.
Save sunimalr/9868862 to your computer and use it in GitHub Desktop.
readfromcsv
private BufferedReader fileReader;
int/float var1, var2, .........
public ........main()...{
while ((line = fileReader.readLine()) != null) {
String[] vals=line.split(' ');
var1=vals[0];
var2=vals[1];
.
.
.
{
//Rest of the program
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment