diff options
author | ArghKevin <kagheli@student.sdccd.edu> | 2024-05-08 00:07:12 -0700 |
---|---|---|
committer | ArghKevin <kagheli@student.sdccd.edu> | 2024-05-08 00:07:12 -0700 |
commit | ada80f74d26a632c1d6960f04f773f4fe51fc10d (patch) | |
tree | 8e68c1b5f35d5c14bb9093fa4f792329361d3995 /src/Reader.java | |
parent | 9ac10f4ae9ab23f030084b766610741c2e9c1c0c (diff) |
Basic CSV parsing.
Diffstat (limited to 'src/Reader.java')
-rw-r--r-- | src/Reader.java | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |