a.slimmm
a.slimmm

Reputation: 11

Java FileWriter Not Creating Second Output File in Benchmark Program

I’m working on a Java benchmark program where I’m using FileWriter to write sorting algorithm results to text files. The program runs without any errors, and I’m able to create the first output file (InsertionSort.txt) on my desktop, but the second output file (CountingSort.txt) isn’t being created. It runs benchmarks for both Insertion Sort and Counting Sort algorithms. For each algorithm it writes the results (operation count and time) to separate text files. The first file (InsertionSort.txt) is successfully created and saved to my desktop but the second file (CountingSort.txt) doesn’t show up

I’m using IntelliJ IDEA for development, heres what I’ve tried so far: I verified that both sorting algorithms are being executed correctly. The program rebuilds without any issues. File permissions on the desktop appear to be fine.

Upvotes: 0

Views: 11

Answers (0)

Related Questions