summaryrefslogtreecommitdiff
path: root/src/Reader.java
diff options
context:
space:
mode:
authorArghKevin <kagheli@student.sdccd.edu>2024-05-08 00:07:12 -0700
committerArghKevin <kagheli@student.sdccd.edu>2024-05-08 00:07:12 -0700
commitada80f74d26a632c1d6960f04f773f4fe51fc10d (patch)
tree8e68c1b5f35d5c14bb9093fa4f792329361d3995 /src/Reader.java
parent9ac10f4ae9ab23f030084b766610741c2e9c1c0c (diff)
Basic CSV parsing.
Diffstat (limited to 'src/Reader.java')
-rw-r--r--src/Reader.java2
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) {