This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes doubt in pattern matching and comparing files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "doubt in pattern matching and comparing files" Watch "doubt in pattern matching and comparing files" New topic
Author

doubt in pattern matching and comparing files

J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121


what i am supposed to do is the line SEE HERE PLEASE has a file. i need to find if it contains the values in lengthvar String array and return bollean values??
how do i read from the file and compare. can anyone help?
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Check out the readLine method in BufferedReader.

John.
J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
Could anybody help in the sense that i need to read the prasanna.txt file in such a way that if it contains the array string values then it should return TRUE.

can anybody tell the approach i can use?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt in pattern matching and comparing files
 
Similar Threads
FileInputStream Initialization...
Regular Expression Package -- Uncertain If I Did It Right
reading integer from a file
reading an integer from a file
please help with text formating in java