SRL Archive - Help and Support

URGENT help needed


[XoL]

2013-09-09 09:50:26

So I have this assignment that I thought would work by now, but I still haven't been able to get input and output working correctly. I need to be able to input a file and have it create a new file and output the results. Here is my code, below are an example of one input and one output


Solved Thanks!

input

Hong Kong Phooey, number one super

guy. Hong Kong Phooey, quicker than

the human eye.

He's got style, a groovy style, and

a car that just won't stop.

When the going gets tough, he's

really rough, with a Hong Kong

Phooey chop (Hi-Ya!).

Hong Kong Phooey, number one super

guy. Hong Kong Phooey, quicker than

the human eye. Hong Kong Phooey,

he's fan-riffic!

Output

A:13
B:2
C:5
D:1
E:29
F:3
G:21
H:29
I:7
J:1
K:8
L:4
M:4
N:25
O:35
P:10
Q:2
R:11
S:10
T:16
U:13
V:1
W:3
X:0
Y:15
Z:0
The letter with the highest frequency is O, and its frequency is 35

This is due in about two hours, any help would REALLY be appreciated right now.
I keep getting "usage: input_file_name output_file_name"

Daniel

2013-09-09 10:03:50

Make sure to place the input file in the project working directory, not the src folder if using Eclipse.

Also, the output you are posting is what happens when you don't supply the correct amount of arguments to your Java program. Make sure to encapsulate both file names in quotation marks if they contain a space.

[XoL]

2013-09-09 11:07:18

Thank you, the problem was I didn't put both the input and output name in the arguments tab of run configurations.