[Solved] Specifying a path for a user defined file name [closed]

By default, the file gets created where ever the project files are for visual studio. because of $(ProjectDir) specified in Working Directory setting. consider: right-click on your project -> Properties -> configuration properties -> Debugging -> Working Directory always make sure you are changing/viewing the active configuration and active platform setting in that window by … Read more

[Solved] C++ append to existing file [duplicate]

You can’t. Files don’t really have lines, they just store a bunch of characters/binary data. When you have 1,2,3,4,5 6,7,8,9,0 It only looks that was because there is an invisible character in there that tells it to write the second line to the second line. The actual data in the file is 1,2,3,4,5\n6,7,8,9,0 So you … Read more