任何人都可以给我C#代码使用按钮在richtextbox中加载孟加拉文本文件并计算该文本文件中的单词数量? [英] Can anyone give me C# code for loading Bengali Text file in a richtextbox using a button and count the number of words in that text file?

查看:78
本文介绍了任何人都可以给我C#代码使用按钮在richtextbox中加载孟加拉文本文件并计算该文本文件中的单词数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//加载文本

Stream Mystream;

OpenFileDialog openfiledialog1 = new OpenFileDialog();

if(openfiledialog1.ShowDialog()= = System.Windows.Forms.DialogResult.OK)

{

if((Mystream = openfiledialog1.OpenFile())!= null)

{



string strfilname = openfiledialog1.FileName;

string filetext = File.ReadAllText(strfilname);

richTextBox1.Text = filetext;



}

}

//loading text
Stream Mystream;
OpenFileDialog openfiledialog1 = new OpenFileDialog();
if (openfiledialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
if ((Mystream = openfiledialog1.OpenFile()) != null)
{

string strfilname = openfiledialog1.FileName;
string filetext = File.ReadAllText(strfilname);
richTextBox1.Text = filetext;

}
}

推荐答案

没有。

它不是那样的工作。

我们不为你工作。

如果你想要别人写的话你的代码,你必须支付 - 我建议你去Freelancer.com并在那里问。



但要注意:你得到的是你付出的代价。支付花生,买猴子。
No.
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.


这篇关于任何人都可以给我C#代码使用按钮在richtextbox中加载孟加拉文本文件并计算该文本文件中的单词数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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