Dec 14, 2015 at 1:23pm
Maybe your file isn't opening: You should check the flags on fin after you construct it.
Dec 14, 2015 at 1:49pm
It seems like the file isn´t opening. What can I do about it?
Dec 14, 2015 at 1:51pm
Make sure that the file is located in the directory where you're running the program.
Dec 14, 2015 at 2:22pm
Are you really sure it is? How are you running the program?
Dec 14, 2015 at 5:53pm
Now I got it. It depended on this string I tried to store.
1 2
|
innehavare = fornamn + " " + efternamn;
//holder = firstnamn + " " + lastname;
|
Instead I created two strings:
1 2
|
string firstname;
string lastname;
|
and never combined them. I think the whitespace in
+ " " +
maked the troble with
fin
. Now the function works as it should. Thanks all! / P
Last edited on Dec 14, 2015 at 5:56pm