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

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -