When you are using ifstream, you are refering to a file like this "file1.txt" as in the code.
This meens that you refer to a file that is within:
C:\Documents and Settings\Coding\My Documents\Visual Studio 2008\Projects\Test
This is a file that is in the debugfolder.
How does this work. Later when a application is finished you perheps want this file under C:\FinishedProgram\files.
What I meen is that within the application you are doing you have different folders with different files that you want to access through different folders like ex "c:\finishedprogram\files" or "c:\finishedprogram\files2"
How does this work because in debugmode you are just within the folder "Debug" under projects.
Code:ifstream File("file1.txt");