如何阅读空白? [英] How to read Blank Space?

查看:57
本文介绍了如何阅读空白?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生,

我试图从文本文件中读取一个空格。如果空格大于5/10,那么在读取字符串后,这个空格存储在一个令牌中? br />
如何实现这个?请帮帮我...

Hello Sir,
I am trying to read a single blank space from text file.If a blank space are more than 5/10 then after reading string this spaces store in a one token?
How to implement this?Please help me...

推荐答案

你可以试试

You can try
string text = textBox.Text;
int length = text.Length;
if (length > 5 || length > 10)
{
  // write your logic here
}


Thanx Praneet Nadkar先生。

这对我来说非常有帮助。

你还可以帮我计算空白的数量..

PLease ...
Thanx Praneet Nadkar Sir.
it's very help full for me.
can u also help me to count the no of blank spaces..
PLease...


这篇关于如何阅读空白?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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