System.IO.TextReader peek()和read()从左到右 [英] System.IO.TextReader peek() and read() from left to right

查看:174
本文介绍了System.IO.TextReader peek()和read()从左到右的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys

我正在编写一个代码,一个接一个地从文本文件中提取单词并进行一些修改..但是...但是带有阿拉伯语单词的文本文件是从右到左书写的 peek()和read()方法从左到右读取字符。

是否有解决方案?

任何建议都非常感谢谢谢

Hello guys
I was writing a code that exract words from a text file one by one and making some modification ..etc .. but text file with arabic words is written from right to left and the peek() and read() methodes reads characters from left to right.
is there a solution for my issue ?
any suggestion is very appreciated thanks

推荐答案

这是一个重大概念上的误解。



从左到右和从右到左的语言之间没有区别,因为文件中的文字表示有关。在将文本显示为某个页面(控件,屏幕等)之前,没有左或右这样的东西。你不能否认在阿拉伯语文本中,文本从开始流向结束。从较早的时刻到较晚的时刻。文件中的字符也是如此。 左和右完全无关紧要。您从文件中以完全相同的方式阅读阿拉伯语文本。

< br $> b $ b新年快乐!



-SA
This is a big conceptual misunderstanding.

There is no difference between left-to-right and right-to-left languages as the presentation of the text in the file is concerned. There is no such thing as "left" or "right" before you present the text as some page (control, screen, whatever). You cannot deny that in Arabic texts, the text flows from the "beginning" to the "end". From earlier moment of time to later moment of time. And so do the characters in a file. "Left" and "right" are totally insignificant. You read Arabic text from file in exact same way as English or any other.

Happy New Year!

—SA


这篇关于System.IO.TextReader peek()和read()从左到右的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆