File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes Loop thru lines in text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Loop thru lines in text file" Watch "Loop thru lines in text file" New topic
Author

Loop thru lines in text file

naresh kumar mallala
Greenhorn

Joined: Jun 13, 2011
Posts: 21
Hi,
I would like to know how to loop through each line in a text file using a Windows batch file and process each line of text in succession.

this is my actual line of code for direct input as 10307:409

si resynccp --allowOpenCP --sandbox="C:\Sandbox\EPIC7.9\EPC.pj" --noconfirm --merge --backFill=cp --notify=onCompletion --mergeType=automatic --ignoreBranches --onMergeConflict=cancel --continueOnErrors --batch --forceconfirm=no 10307:409

but I want to take input from text.txt line by line

text.txt contains

10307:409
10307:410
10307:411


please help me.....

thank you all!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loop thru lines in text file
 
Similar Threads
help with this type of programa (manipulating text)
it keeps rewrite data in text file
Capturing javac outputstream
char = 1 byte ?? full code from jawroski quiz
How to extract columns of coordinate values from text file (in java) ?