This forum has been archived. All content is frozen. Please use KDE Discuss instead.

linux vs unix files access

Tags: None
(comma "," separated)
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
1175
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.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]