Reply to topic

linux vs unix files access

bobsouth
Registered Member
Posts
1
Karma
0

linux vs unix files access

Wed Jul 03, 2019 8:59 pm
Previously, using GNU Unix I had no problem including a text file to supply initial value for a simulation program.
Kdevelop has me confused, the text file is simple ascii, labeled "initial values.inp". Where can I put the file so c++ can read the file?
User avatar scummos
Global Moderator
Posts
1137
Karma
7
OS

Re: linux vs unix files access  Topic is solved

Sat Jul 06, 2019 8:17 am
There's no difference introduced here by KDevelop. If you want to read the file with just "fopen(bla)", you need to put it into your current working directory. Which, in case you start your executable from KDevelop, can be set in the run configuration dialog.

By the way, "GNU" stands for "GNU is not Unix", so "GNU Unix" is somewhat confused ;)


I'm working on the KDevelop IDE.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], benjaminl, Bing [Bot], cylverbak, Google [Bot], gui-m, ipwizard, kakosf, kde-jriddell, klorax, Mamarok, P3lor, peje, Raptor 2101, skylerjett, Snudl, zwankfr