天狼啸月
天狼神族
posts - 0,  comments - 0,  trackbacks - 0
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
 char buffer[256];
 fstream out;
 out.open("1.html",ios::in);
 cout<<"12.txt的内容如下:"<<endl;
 int i=0;
 while(!out.eof())
 {
  out.getline(buffer,256,'\n');
  cout<<buffer<<endl;
  i++;
  if(i==5)
   break;
 }
 out.close();
}
posted on 2011-12-23 09:40 烈焰之光 阅读(116) 评论(0)  编辑 收藏 引用 所属分类: 源码文件及文件夹操作

<2026年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿

文章分类

文章档案

搜索

  •  

最新评论