#include "stdio.h"
#include "conio.h"
#include "iostream.h"
#include "fstream.h"
void main()
{
char nama[15],alamat[20],email[20];
ifstream f_in("pelangi.txt");
f_in.read((char*)&nama,sizeof(nama));
f_in.read((char*)&alamat,sizeof(alamat));
f_in.read((char*)&email,sizeof(email));
while(! f_in.eof())
{
f_in.read((char*)&nama,sizeof(nama));
f_in.read((char*)&alamat,sizeof(alamat));
f_in.read((char*)&email,sizeof(email));
cout<<"Nama : "<
f_in.close();
getch();
}
0 komentar