I have a file called "test.txt" in the same directory as the cpp file that contains these four lines of code. The contents of test.txt is different from the text "before" so if it reads the file successfully I would expect it to output the contents of the file to the log, however I just see "before" on the log. What am I doing wrong? What is the proper way to search for the directory?
Edit: The text file was added in Xcode file->new->file->blank. Maybe this is not the proper way to add a file to the project?
LoadFileToString() is a static bool method, check if the condition has been reached in a if statement, AFAIK this accept relative or full paths!
answered Jan 22 '18 at 02:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here