| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
using java to serach a text file
|
Original Message
|
Name: greenbear13
Date: October 28, 2004 at 08:35:28 Pacific
Subject: using java to serach a text fileOS: xp homeCPU/Ram: pent 4 |
Comment: well guys, the title says it all; I have a .txt file that I need to search for a particular string ... however, I don't know the line the string will be on or anything, nor even how many lines it will have exactly (it is a string which has the text "busy : x", whhere x is some random integer any tips?
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: bamakhrama
Date: November 17, 2004 at 04:17:49 Pacific
|
Reply: (edit)The idea is to read the file as a whole using streams the search in that array then return the result. You need to look in streams in Java since they provide a powerful capabilities.
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home