Search:

Type: Posts; User: JustMe

Search: Search took 0.01 seconds.

  1. Thread: ifstream help

    by JustMe
    Replies
    8
    Views
    4,387

    Hey guys, Thanks for the help, the last post...

    Hey guys,

    Thanks for the help, the last post gave me the problem.
    I'm also running a fresh windows install and windows hides the file extensions by default.

    I thought i wrote a file "test.dat"...
  2. Thread: ifstream help

    by JustMe
    Replies
    8
    Views
    4,387

    Yes, test.dat is located in the same directory as...

    Yes, test.dat is located in the same directory as my *.cpp file and thus the executable.

    Did i forget any headers or something?
  3. Thread: ifstream help

    by JustMe
    Replies
    8
    Views
    4,387

    I'm sorry, forgot a bit i see :) The first...

    I'm sorry, forgot a bit i see :)

    The first problem is the bit



    ifstream infile("test.dat", ios::in | ios::nocreate);


    It won't compile until i delete the "ios::nocreate" part. It says:
  4. Thread: ifstream help

    by JustMe
    Replies
    8
    Views
    4,387

    ifstream help

    Hey guys,

    I'm trying to learn c++, but i think i may need a little help at this point.
    I want to read some data from a file "test.dat", but for some reason it won't work.
    I don't see where i...
Results 1 to 4 of 4