Youssef, On 23 July 2015 at 16:07, Hmamouche Youssef wrote: | I'm trying te read a csv file in Rcpp package, with C++ function: | | ifstream ifs("FileName.csv") | | I'm using Rcpp modules , and the code work with Qt creator (purly in C++), but | Rcpp cant' find the csv file in his stuctur. | | I remark also that the package work well without importing csv file, so the | problem is that my Rcpp package cant' find csv file.
You may find a Google query such how to change working directory from C code helpful, or think about how the 'filename' argument can also support a path. This isn't an Rcpp question, but an elementary programming issue. It might be polite to use a more appropriate venue for this. Regards, Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel