From ada80f74d26a632c1d6960f04f773f4fe51fc10d Mon Sep 17 00:00:00 2001 From: ArghKevin Date: Wed, 8 May 2024 00:07:12 -0700 Subject: Basic CSV parsing. --- src/Reader.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Reader.java') diff --git a/src/Reader.java b/src/Reader.java index 934bf5f..80e795d 100644 --- a/src/Reader.java +++ b/src/Reader.java @@ -26,8 +26,10 @@ class Reader { /* Scan over the contents of the input file. */ scan = new Scanner(file); /* Save to object. */ + contents = scan.nextLine() + "\n"; while (scan.hasNextLine()) { contents += scan.nextLine(); + contents += "\n"; } /* On exception, exit. */ } catch (Exception e) { -- cgit v1.2.3