我是小白,想求教关于文件输出的问题
											编写一个程序,实现将存放在文件中的学号,姓名,电话等信息读出并显示出来,我不知道那个fstream到底怎么用,很不熟悉,希望大家帮一下,谢谢										
					
	
程序代码:#include <iostream>
#include <fstream>
using namespace std;
int main()
{
    fstream file;
    file.open("d:\\123.txt",ios::in);
    char buffer[1024] = {'0'};
    while(!file.eof())
    {
        file.getline(buffer, 1024, '\n'); 
        cout<<buffer<<endl;
    }
    return 0;
}										
					
	


											
	    

	

