Hello world !
I am developing, in VB.Net, an application that reads from text files using a FileStream
Object. I do not use a StreamReader
, since the buffering it does makes it impossible to use Seek
.
Those text files form a database, with both index and data files. In index files, all fields are fixed-length, which is not the case in data files.
I've recently run into a problem. Since some of my files contain accents, the corresponding characters take more that 1 Byte. Therefore, when I seek in the index file, and offset appears the rest of my index file is not read in the right way.
I'm searching for an encoding that allows to use accents, special characters and so on, where every character is stored using the same number of bytes. This way,; I could still seek in my files. Does this exist ?
Thank you,
CFP.