Any help would be appreciated with this program :

I have a file with 5 lines....each line has name, id , phone ...etc...
I have to read that intro an array of structures and display the results.
This is what I have so far .. I doesn't not display anything

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

struct StudentInfo
    string name;
	int account_id, phone;
	float checking, saving;

int main ()
	ofstream file1; 
    const int MaxSize = 5;
    StudentInfo myarray[MaxSize]; ("users.txt");
for (int i=0; i<MaxSize; ++i)


//    }
    return 0;

I would guess that it's because you have no data to display. Where is myarray loaded?

you've done everything for writing to a file, but there is absolutely no code for opening and reading from a file.

The file exists already . I just thaught I might be able to assignt with studentifo myarray[maxsize]. in the loop I think that every line in the file will be stored in the array. I don't have to input anything in the file . Just read and output 5 students into array and display . I'm really not c++ savvy . All I need is a good direction