codeblocks - Why can't I read a file with Code::Blocks C++? -


i've created file in code::blocks called datos.csv, , have code:

std::ifstream file("datos.csv"); if (file) {     cout << "managed read file successfully."; }else{     cout << "unable read file."; } 

but unable read file.

i tested same code textmate, can run c++ files, , indeed able read file, suppose there's code::blocks. missing?

my file appears listed in "others" in code::blocks' navigator.

you need modify target properties, go project -> properties -> build targets , change "executing working dir" debug/release folder of proyect, hope help.

greetings. saludos.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -