Hi
thanks for reply
but i am not understanding , but you are saying
can you give some code example so that i can search these words
thanks in advance
varinder
The encoding is some kind of 'List of characters', in VB Express Edition 2005 there's an example that shows you how to open a text file with different encondings.
That's useful while working with spanish, for example, because the ASCII or the UNICODE encoding wont support "camión" or "niño". That's why i use 'Default' or UTF7 (or 8)
About what Vijay says, well, thats true, you can search any character in a string, if you want to search an special character, it's quite simple to paste it in your code or in a textbox (this will allow you to see it as it is), and then search it.
The problem here is when you import a Text File that says Óscar (my name in spanish), It'll be stored in the string as ?scar, so even if you're able to search the 'Ó' character, it wont be in the string you imported from the text file.
If you want an example, well, importing text files is a syntax that has changed a lot, but in most of the recent versions, this might be of help:
- Public Shared Function ReadAllLines ( _
-
path As String, _
-
encoding As Encoding _
-
) As String()
To declare it, and then, while using, you can change the enconding.
HTH