Java input file

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
Trinity
New poster
Posts: 12
Joined: Tue Jun 10, 2003 3:40 pm

Java input file

Post by Trinity » Mon Jun 16, 2003 11:26 pm

Hi people!

I'm solving problem n

Spike
New poster
Posts: 29
Joined: Mon Mar 18, 2002 2:00 am
Location: Washington State
Contact:

Reading from a file

Post by Spike » Tue Jun 17, 2003 6:55 am

To the best of my knowledge, all UVA problems are reading from standard in. This problem was probably taken from an actual ACM competition, which, at least around here, read from a file. ( generally 'a.in' and so fourth )

Try solving the problem reading from standard in. Post again if you're having trouble.

xbeanx
Experienced poster
Posts: 114
Joined: Wed Jul 30, 2003 10:30 pm
Location: Newfoundland, Canada (St. John's)

Post by xbeanx » Fri Aug 08, 2003 10:45 pm

Is it also possible that the program gets more than one file redirected?

For example, you get input until you reach EOL, then restart your program, and keep doing this until there are no more inputs.

??

Post Reply

Return to “Java”