I am having trouble reading some files in standard cpp.
(The path is correct, but when reading the files I don't get any input)
And I think posix permissions might be causing the problem
So when I do a:
Which means my permissions are ok,(since I did chmod 777) but what is the @ mark at the end?
-rwxrwxrwx@ 1 nacho4d staff 276 Feb 24 21:32 llahparam.txt
-rwxrwxrwx@ 1 nacho4d staff 3648 Feb 24 21:32 paperlist.txt
-rwxrwxrwx@ 1 nacho4d staff 230 Feb 24 22:14 pts1.txt
-rwxrwxrwx@ 1 nacho4d staff 267 Feb 24 21:33 pts2.txt
I've realized that not all files have this mark, and might be a coincidence but the ones I cannot read have this mark.
I read the file, but It is like it were empty. so I get not error, nothing.
When I see it in the finder I can see the content
but when doing
in the terminal nothing appears. (So is seems to be empty?)
ifstream in(name); //name is a absolute path, something like "/Users/nacho4d/myfile.txt"
in >> w;
in >> h;
in >> fx;
in >> fy;
in >> cx;
in >> cy;
in >> k1;
in >> k2;
in >> p1;
in >> p2;
The file I am trying to read was created in Windows but I have already checked that is UTF8 encoded and it has UNIX line endings.
I also tried creating a new file and copying the content and it didn't work.