Thread: Basic file io
View Single Post
Old 04-07-2017, 05:25 PM   #10
Human being with feelings
Join Date: Jan 2014
Location: Brighton, UK
Posts: 21

Your second call to strcpy overwrites your buffer contents (the result of GetResourcePath()) with "wdl_test_file.txt" because it's using strcpy again.

That second call should be using strcat instead. I'm sure you'll work out why if you look up the docs for strcpy & strcat.
ynohtna is offline   Reply With Quote