The Artima Developer Community
Sponsored Link

Java Answers Forum
io stream

1 reply on 1 page. Most recent reply: Jan 28, 2004 8:05 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
gangadhar

Posts: 1
Nickname: gdkundu
Registered: Jan, 2004

io stream Posted: Jan 28, 2004 2:01 AM
Reply to this message Reply
Advertisement
Dear friends,
How i count a particular string in a file,by io stream ie. by using wc method ?


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: io stream Posted: Jan 28, 2004 8:05 AM
Reply to this message Reply
read the file.

Put it in a stream

use the method readLine()in a loop until u find end of file.

by the way what is this wc method

Flat View: This topic has 1 reply on 1 page
Topic: what about netbeans? Previous Topic   Next Topic Topic: Library to get information on video files?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use