This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
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