ifstream ifs (filename, the ios: : binary | ios: : in);
VectorFvec;
while (! The ifs. Eof ())
{
Float b;
The ifs. Read (reinterpret_cast & lt; Char * & gt; (& amp; B), sizeof b);
Fvec. Push_back (b);
}
The ifs. Close ();
Where is the problem?
ifstream ifs (filename, the ios: : binary | ios: : in);
VectorFvec;
while (! The ifs. Eof ())
{
Float b;
The ifs. Read (reinterpret_cast & lt; Char * & gt; (& amp; B), sizeof b);
Fvec. Push_back (b);
}
The ifs. Close ();