文件
文章平均质量分 54
wltao
这个作者很懒,什么都没留下…
展开
-
Python进阶_1.读写文件
#写文件str1 = 'test'#1、新建文件流write = open('123.txt','w')#write = file('123.txt','w')#2、写文件write.write(str1)#3、关闭文件流write.close() #读文件#1、新建文件流read = open('123.txt','r')#read = fil原创 2011-11-22 00:50:15 · 360 阅读 · 0 评论 -
每天学点C++_2.循环读取文件夹中的文件
//读取文件,将处理结果输出void ReadFiles(CString strAP, string _outPath) { ifstream read; read.open(strAP); ofstream write; write.open(_outPath.c_str(), ios::out | ios::app); if (write.fail() | read.fail(原创 2011-12-19 14:35:07 · 2072 阅读 · 1 评论 -
Java_ABC_9.遍历文件夹
package comment;import java.io.*; import java.util.ArrayList;public class EraseComments { /** * @param args */ public static ArrayList m_listPath = new ArrayList(); public s原创 2011-12-19 14:53:38 · 374 阅读 · 0 评论