c# - Write to a txt file right to left -
I want to write a message in Hebrew in a text file. I tried the following:
using (StreamWriter sw = File.CreateText (path + FileName)) {sw.WriteLine (sms); } However, the message goes from left to right, how can I write to the left?
A string is an array so that you
four [] tempArray = Sms.ToCharArray () Array.Reverse (tempArray) sms = new string (tempArray) When you type, this array should be reversed, it will be read right from left to right.
Comments
Post a Comment