1. 程式人生 > >第16周閱讀程式——4(1)

第16周閱讀程式——4(1)

/*
*Copyright (c) 2016,煙臺大學計算機學院
*All rights reserved.
*檔名稱 :
*作 者 : 劉雲
*完成日期 : 2016年6月15號
*版 本 號 : v6.0
*
*問題描述 :  閱讀程式
*輸入描述 :無
*程式輸出 :
*/
#include<iostream>
#include<fstream>
using namespace std;
const char * filename ="a.txt";
int main()
{
   long l,m;
   ifstream file(filename,ios::in|ios::binary);
   l=file.tellg();
   file.close();
   cout<<"size of "<<filename;
   cout<<" is "<<(m-1)<<" bytes.\n";
    return 0;
}