This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Searching a File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Searching a File" Watch "Searching a File" New topic

Searching a File

Michael L. Taylor

Joined: Aug 07, 2002
Posts: 1
Can anyone help me in getting started on how I can search a file for a particular String or Number?

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
What do you know how to do so far? Are you familiar with reading a text file in?
Are you brand new to I/O? If so, I'd recommend that you take a look at
  • The I/O: Reading and Writing (but no 'rithmetic) Lesson of Sun's Java Tutorial
  • Part 9 of Bradley Kjell's Introduction to Computer Science using Java
  • and Chapter 10 of David J. Eck's Introduction to Programming Using Java
  • Good Luck.

    [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Dirk Schreckmann

    Joined: Dec 10, 2001
    Posts: 7023
    Oh, and...
    Welcome To JavaRanch!
    I agree. Here's the link:
    subject: Searching a File