File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java IO, File Processing

 
Napa Sreedhar
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also I am looking for good java file processing opensource similar to COBOL.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Napa Sreedhar
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic