Not same for both files

I was testing my skills as a beginner..when i had some problems
with ifstream: it couldnt open a txt file . I made an other project and made simple tests and same problem. I had a old code that work with ifstream i copied past it in the cpp of the new project and had same problem.However when i compiled it in the old cpp it work .
Anyone have a idea about what happening?

I have code block 10.5

Note:few days ago i opened,modified and compiled a project downloaded from net and code block told me that it was a older version but it worked.It may have corrupted my code block?????

Update:
I noticed that in the project there appeared a text file:

console et projetC++project1Dico.txt

Dico.txt is supposed to be my text file

console et projet the folder of all my projects

C++project1 name of the project where the code was working (the old project)

Solution

Nvm i forgot to move the text file from old project folder to the new one.Oh boy that was really stupid
Last edited on
Topic archived. No new replies allowed.