• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

java IO, File Processing

 
Ranch Hand
Posts: 62
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also I am looking for good java file processing opensource similar to COBOL.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!