Advertisement

ambiguous ifsream w/ direct3d????

Started by April 15, 2001 03:35 PM
0 comments, last by Dynamite 23 years, 10 months ago
i''m using direct3d to make a game and i''m trying to open a file. i''m using fstream.h and creating a variable
  
ifstream infile ("file.txt", ios::in);
  
it tells me it''s an ambiguous symbol. can anyone help?
--I don''t judge, I just observe Stuck in the Bush''s, Florida
--I don't judge, I just observeStuck in the Bush's, Florida
include "fstream" (NO .H)

and lose the ios::in...

std::ifstream stream("file.txt");

tadaaa

This topic is closed to new replies.

Advertisement