In the previous section, you learned about the
Document directories. Now, in this section we will explore this in more detail. You will learn about saving RAW files in our application's document directory.
We will use the preceding project for this section as well. So, open the project and follow the next section.
Perform the following steps to write data into your
.txtfile in our folder (which we created in the document directory). Customize the code in
dataPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"myfile.txt"]; NSLog(@"%@", dataPath); ...