Can't Find My Created File

Hey Everybody !

I wrote some code that was supposed to create a text file. It executes in Xcode but I can't find the file anywhere on my mac.

Here's a screenshot of the program. The file that I'm trying to create is named ... demofile.txt. * * *

* * * *

Any suggestions as to why the file doesn't seem to be getting created ?

Thanks !

Answered by kmarler18 in 694811022

I figured it out guys. Never mind.

For debugging, you should edit the current scheme and set the working directory to something easy to find, like a folder in your home directory. (Product / Scheme / Edit Scheme / Run / Options / Use Custom Working Directory)

Accepted Answer

I figured it out guys. Never mind.

For debugging, you should edit the current scheme and set the working directory to something easy to find, like a folder in your home directory. (Product / Scheme / Edit Scheme / Run / Options / Use Custom Working Directory)

When you show your code, please use Code Block, not screen shot.

Can't Find My Created File
 
 
Q