There is a question regarding the encoding as in What is character encoding and why should I bother with it. However, I still confuse with the encoding for the Windows system and file.
As I am working C# program on Visual Studio 2017, may I know how to convert the string that is input in the textbox to byte array and write it into a text file?
I am not writing the text to file is because I need the bytes value of the string as compression. For example:
Input : hello world
Bytes array that write to file: 罴讵8?瘈
Thank you for your time!