jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes java IO, File Processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "java IO, File Processing" Watch "java IO, File Processing" New topic

java IO, File Processing

Napa Sreedhar
Ranch Hand

Joined: Jan 29, 2002
Posts: 62
properties file

mon_range = 09:00, 20:00
tue_range = 09:00, 20:00
wed_range = 09:00, 21:00
thu_range = 09:00, 18:00

I wrote a java program which reads properties file, performs logic and confirms on user input from console. On typing 'Y' the user should be allowed to proceed?

Shell script is written to invoke the java program.
1. I have only one main method and I dont want to display unnessary logging.
More of selective logging from unix or java.

Could any one please help.

Also I am looking fo good java file processing open source.

Thank you
Napa Sreedhar
Ranch Hand

Joined: Jan 29, 2002
Posts: 62
Also I am looking for good java file processing opensource similar to COBOL.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Regarding your first post, do you have a question?

Regarding your second post, I can't begin to imagine what about COBOL's file handling strikes you as especially "good" -- you're going to have to list specific features you're looking for, and we will most likely be able to tell you where to look in Java's APIs for these features.

Finally, this isn't anything like "advanced" Java. I'll move this to our
"I/O and Streams" forum for further discussion.

[Jess in Action][AskingGoodQuestions]
Napa Sreedhar
Ranch Hand

Joined: Jan 29, 2002
Posts: 62
Regarding Question 1)
I am running a java program from UNIX box.
It is displaying all the log4j output which I want to back up into a log file,
Where as I only want to display user specific message on running the script i.e.
"The no of records in the file is 2000. Your processing speed will be 90 records / min.
Do you want to continue Y/N"

Regarding Question 2)
We have a strange requirement which needs large file(20k records) processing
As I am not good in perl or other scripting languges I want to use Java

each record in a file
may have (record format)
token 1, token2, token3

After processing each record I need to append the record
token 1, token 2, token3, Y
on success or failure

Please tell if I am unclear.
Napa Sreedhar
Ranch Hand

Joined: Jan 29, 2002
Posts: 62
Regarding Question2)
If there is a open source I would like to just browse through.

Or else I can werite my own file utility classes.

I agree. Here's the link: http://aspose.com/file-tools
subject: java IO, File Processing
It's not a secret anymore!