Hi all,
In main program I read file using bufferedreader, and (try, catch),
Now this section is repeated in my code , how can I call function to do that ? By passing filepath ..I try it but I don't get any line of file ...
How can I get lines of files using function when I call it? ?
Mar. Na.
-3
Junior Poster in Training
Recommended Answers
Jump to Postyou want us to comment on your code without seeing your code?
based on your description: extract it in a method, and call that method in a loop.
Jump to PostWhat code did you try?
All 6 Replies
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Mar. Na.
-3
Junior Poster in Training
Mar. Na.
-3
Junior Poster in Training
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.