take for example
Abida 123
If the data you read is 3 bytes long, you can get the dimension of this character. If you miss half a word, you can only get the first Chinese character. At that time, if the length of the data you read was 7 bytes, you could read: Abieda 1, you know what I mean. If you want to read the value according to the actual number of words, there are two ways.
Use files. ReadAllText () reads all the text, and then intercepts the string,, according to the number you choose, so as to get the actual number of text.
Use FileStraam to get the number of strings of the current length, which is usually greater than or equal to the number of bytes you specify. If it is greater than the number of bytes being read, loop judgment is made to make it equal to or less than one byte.