View Single Post
Old 03-11-2005, 01:03 PM   #5 (permalink)
crazyant
Registered User
 
Join Date: Mar 2005
Posts: 3
crazyant is on a distinguished road
Quote:
Originally Posted by Belisarius
Is it a constant format? Is the first line always upper-case, the second lower-case, etc?

Yup... its devetively simple. I went ahead with a suggestion from another source...

while(Line_one != null) //begin loop
{
System.out.println(Line_one.toUpperCase());
output_file.println(Line_one.toUpperCase());

Line_one = inputFile.readLine();

if (Line_one != null)
{ System.out.println(Line_one);
output_file.println(Line_one);
}

Line_one = inputFile.readLine();
}


Worked well, even though its a alittle clumsy.

Thanks all
crazyant is offline   Reply With Quote