This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "java IO, File Processing" Watch "java IO, File Processing" New topic
Author

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
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

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
as
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.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java IO, File Processing
 
Similar Threads
Reading and using numerous files at once
Code behaving mysteriously - code snippets are skipped!!!
Windows SBS 2008 and timezone (DST) problem in Europe/Berlin
Unable be to read Special character (OS specific)
5 minutes Time increments