C# 如何读取一行中的所有变量
2014-01-12 20:26
197 查看
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { char[] delimiterChars = { ' ', ',', '.', ':', '\t' }; string text = this.textBox1.Text; string[] words = text.Split(delimiterChars); foreach (String ss in words) { this.listBox1.Items.Add(ss); } } } }
相关文章推荐
- 如何读取从ACCESS中读取所有用户表名(C#)
- 如何读取从ACCESS中读取所有用户表名(C#)
- 【转】C#如何读取txt文件中每一行每一个数据
- MATLAB中如何读取同一路径下所有txt或mat文件小程序
- c# 读取串口——如何全部读取
- C#中创建、打开、读取、写入、保存Exce,C#如何向EXCEL写入数据
- C#遍历某文件夹下的所有文件,读取文件并插入到数据库中
- 在Struts2中,如何使用JSTL来读取Action中的变量?
- [VB.NET]请问如何从OpenFileDialog中读取所有文件名到Listbox
- PHP 如何得到当前页面中所有已定义的变量和常量
- cocos2d-x 如何读取遍历文件夹下的所有文件
- C#读取某个目录下的所有excel文件名
- C# 如何获取SQL Server 中指定数据表的所有字段名和字段类型
- C/C++中的输入与输出及如何读取一行文本
- ASPX 如何读取 AppData 目录下面的XML (C#实现)
- 如何使用C#读取文本文件
- 如何用c#读取word中的某一段文字
- C#里如何读取和修改配置文件的值
- 如何取得所有的Session变量
- C#如何判断线程池中所有的线程是否已经完成