Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem reading file 1

Status
Not open for further replies.

spankweat

Technical User
Jul 27, 2001
13
US
Hi,

I am having problem reading from a file. I use StringTokenizer to parse the file and find the word that I am looking for. The problem is that the word is never found; I know its there because I opened the text file.

Since the text file was generated by Windows, I think that there are some formatting issue involved. The file is PC Unicode.

I added a PrintWriter and printed each line that were read. There is a blank space between every character... (Those spaces were not visible in notepad)
I tried to look for "w o r d" (as opposed to "word") unsucessfully.

Could someone help me?
Thanks!
 
Let me know if you find your other way around!
My email is spankweat@yahoo.com

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top