File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
    jQuery in Action, 3rd edition