Skip to content

Instantly share code, notes, and snippets.

@GuiSim
Created May 16, 2016 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuiSim/a7170a69440383721a1d3b34c9922b2e to your computer and use it in GitHub Desktop.
Save GuiSim/a7170a69440383721a1d3b34c9922b2e to your computer and use it in GitHub Desktop.
List<String> rows = Files.readAllLines(Paths.get(fileName), StandardCharsets.UTF_8);
String header = rows.remove(0);
// You can then continue with your application logic
int headerColumnCount = header.split(Constants.SEPERATOR_ESCAPED).length;
for (String row : rows) {
System.out.println(row);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment