And is the program's working directory the directory containing the text file? Some IDEs change the working directory.
What if you give the absolute path to the file, including the full directory location? Your code to open the file does work, so the problem must be that the file does not exist or the program is looking in the wrong place.
i gave it the full path to the text file, but i stil keep getting the same jibberish. I entered name is audi, make is plane oslt, and year sis 1999, but when i read it i get name: (hearth symbol), make: (empty) , year: 0. it like it cant read it or its reading something else.
I used the example, i copyed it exactly like it was in th instructions, and i rund it, andi still got the same result. I wrote marko and 17, but i when i read the file wit other program it read that name is hearth symbol and age is 0. Coludl this be somkidn ov Devc++ bug???