A
A
Arcaya2020-06-05 13:42:15
C++ / C#
Arcaya, 2020-06-05 13:42:15

How to solve the problem of reading a file in C++ after building a project?

The essence of the problem is this: I have a text file where simple numerical data is written, from where they are read.
If the project is launched from the IDE (I have xcode), then everything works fine, but I need to compile the project into an executable file, in which the problem arises, where the txt file is not readable / not seen by the program
I tried to create the same txt file next to the file (in theory, it should be created if it is missing) - it does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petryaev, 2020-06-05
@Gremlin92

Put the file next to the class file Game.cpp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question