Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:05:24+00:00 2026-06-11T16:05:24+00:00

This is how I save my mutable array actually. [myMutableArray writeToFile:@/Users/myUserIdentifier/Desktop/results.plist atomically:YES]; The array

  • 0

This is how I save my mutable array actually.

[myMutableArray writeToFile:@"/Users/myUserIdentifier/Desktop/results.plist" atomically:YES]; 

The array contains basically many words and I want a Windows user to be able to read them AND I need them to go back to a new line for each word.

I’ve tried to add at the end of every words the tag and then save the file in .html:

[myMutableArray writeToFile:@"/Users/myUserIdentifier/Desktop/results.html" atomically:YES]; 

Actually the file is readable but too bad the tags have been formatted like so:

  <br> 

So Chrome dont understand it as a “go to a new line”.

Well, pretty messed up explanation, hope I’ll find a soul mate with a messy mind to understand all this stuff!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:05:26+00:00Added an answer on June 11, 2026 at 4:05 pm

    You just want to write an array containing strings to a file? Nothing fancy needed then. For example:

    #import <Foundation/Foundation.h>
    
    int main(int argc, char *argv[]) {
        NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
        NSMutableArray *words = [NSMutableArray arrayWithObjects:@"fluffy",@"furball",@"scratcher",nil];
        FILE *filePointer = fopen("/Volumes/Weinberg/Users/alan/Desktop/cats.txt","w");
        [words enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
            fprintf(filePointer,"%s\n",[obj UTF8String]);
        }];
        fclose(filePointer);
        [p release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this method to save a mutable array named myWallet that contains instances
I have an array which contains 12 numbers and I want to save this
I normally save new data to the database like this: $this->MyTable->set(array( 'id' => $id,
This could save me so much time. Sometimes I find myself writing things like
I save picture from UIImagePicker this way: Save picture in file and then I
I save picture from UIImagePicker this way: Save picture in file and then I
I do this to save new invoince in my Invoices database table: // insert
Using this to load the json var jsonParsed = JSON.parse(localStorage.getItem('test')); Using this to save
I have a value int called score and i want to save this to
So.. I have a buffer with MP3 data (If I would save this buffer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.