Skip to content

Commit

Permalink
Fixed bug where it would not created user specifed output file
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansikder committed Jan 3, 2023
1 parent be2e3d6 commit 58b1d3d
Show file tree
Hide file tree
Showing 11 changed files with 26,799 additions and 32,732 deletions.
4 changes: 2 additions & 2 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=19
Binary file added README.docx
Binary file not shown.
Binary file added README.pdf
Binary file not shown.
Binary file modified bin/ie/atu/sw/ConsoleColour.class
Binary file not shown.
Binary file modified bin/ie/atu/sw/ProcessFiles.class
Binary file not shown.
Binary file modified bin/ie/atu/sw/Runner.class
Binary file not shown.
Binary file modified bin/ie/atu/sw/WordDetail.class
Binary file not shown.
Binary file added indexer.jar
Binary file not shown.
59,523 changes: 26,795 additions & 32,728 deletions output.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ie/atu/sw/ProcessFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void displayAll() {
*/
//Wrting To file - Big O Notation: O(n)
public void writeToFile(String fileName) throws Exception {
FileWriter fw = new FileWriter(fileName);
FileWriter fw = new FileWriter(fileName+".txt");
PrintWriter out = new PrintWriter(fw);

Iterator<String> iterator = index.iterator();
Expand Down
2 changes: 1 addition & 1 deletion src/ie/atu/sw/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void main(String[] args) throws Exception {
String fileDir = "";
String dictionary = "./Dictionary.csv";
String ignoreWords = "./google-1000.txt";
String outputFileName = "output.txt";
String outputFileName = "output";
Scanner scanner = new Scanner(System.in);


Expand Down

0 comments on commit 58b1d3d

Please sign in to comment.