#include<string>
using namespace std;
string ReadFile(string fileName)
{
   
string all_contents;
   FILE 
*file=fopen(fileName.c_str(),"r");
   
char c=fgetc(file);
   
while (c!=EOF)
   {
    all_contents
+=c;
    c
=fgetc(file);
   }
    fclose(file);
    
return all_contents;
Posted on 2010-02-11 12:29 邹敏 阅读(822) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理