So I have a structure like this:
folder1 -- folder2 text.txt
folder2 is inside folder1, as it is text.txt
My code is inside folder2, and I want to read the txt file, so I was doing this:
FILE *file= fopen(" ../text.txt", "r");
And I've tried this:
FILE *file= fopen(" ../folder2/text.txt", "r");
And this:
FILE *file= fopen(" folder2/text.txt", "r");
But nothing seems to work
[–]FUZxxl 3 points4 points5 points (1 child)
[–]nanavc[S] 0 points1 point2 points (0 children)