Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dargones committed Jul 29, 2024
1 parent 28bc05b commit a38519c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/acrostics/LanguageModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.File;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
Expand All @@ -19,7 +20,7 @@ public LanguageModel(String filename) {
filename = filename + FILE_POSTFIX;
System.err.println("In constructor");
try {
Scanner sc = new Scanner(new File(filename));
Scanner sc = new Scanner(Paths.get(filename), StandardCharsets.UTF_8);
System.err.println("Reading file: " + filename);
System.err.println("Reading file: " + new File(filename).getAbsolutePath());
while (sc.hasNextLine()) {
Expand Down

0 comments on commit a38519c

Please sign in to comment.