搜索
编程论坛
→
.NET专区
→
『 C# 论坛 』
→ [求助]如何将listBox里的内容自动保存
标题:
[求助]如何将listBox里的内容自动保存
只看楼主
lees0122
等 级:
新手上路
帖 子:8
专家分:0
注 册:2006-4-4
楼主
问题点数:0 回复次数:1
[求助]如何将listBox里的内容自动保存
如何将listBox里的内容自动保存立德为荣保存为文本文档?
搜索更多相关主题的帖子:
listBox
自动
保存
2006-04-04 14:19
jnwfh
等 级:
新手上路
帖 子:39
专家分:0
注 册:2005-12-16
第
2
楼
得分:0
StreamWriter sw = new StreamWriter("1.txt", false, System.Text.Encoding.Default);
for (int i = 0; i < listBox1.Items.Count; i++)
{
sw.WriteLine(listBox1.Items[i]);
}
sw.Close();
2006-04-04 21:21
2
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-55008-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.508041 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved