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!
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!