Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
using java to serach a text file
Name: greenbear13 Date: October 28, 2004 at 08:35:28 Pacific OS: xp home CPU/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?
Name: bamakhrama Date: November 17, 2004 at 04:17:49 Pacific
Reply:
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.
Summary: I am working on a batch program, the part I am needing assistance on is making it edit multiple lines of text in a text file. Basically the text file has file paths that all end with index.dat, I wan...
Summary: Hi, I need to be able to take a text file set up like this # name1 xxxxxx xxxx xxx # name2 yyyy yy yyyyyyyy # etc and create new text files called name1.txt, name2.txt containing the entries of data b...