Questions tagged [writetofile]

for questions concerning the writeToFile method, part of the NSData class in OS X and iOS

This tag should be used for questions that relate to the use of one or more of the various writeToFile methods, which are provided by the NSData class in both the Mac OS X and iOS APIs.

The Apple developer documentation for the NSData class is available online here.

351 questions
-3
votes
1 answer

Equivalent for NSString writeToFile and archiveRootObject in Android ?

On iOS I use these lines of code to store a large String (JSon)... How can I do the same on Android? What is a file place to put that string? Thanks NSArray *paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask,…
Usi Usi
  • 2,857
  • 5
  • 29
  • 63
-3
votes
2 answers

how to write to a text file using python ?

I am trying to output a full for iteration. The output should be in a text file. How should I code for that ? The output should look like : Iteration 1 values --------> val1 < tab > val2 < tab > val3 Iteration 2 values --------> val4 < tab > val5 <…
dsinha
  • 19
  • 7
-4
votes
1 answer

StreamWriter object doesn't work at all

This code works fine within SaveFileDialog private void buttonSaveAs_Click(object sender, EventArgs e) { try { if (selectedFileInfo != null) { // Save File …
DmitryBoyko
  • 32,983
  • 69
  • 281
  • 458
-4
votes
1 answer

Write to file using JavaScript on macOS

How I can write simple text (e.g. "Hello world") to file? I must use JavaScript and code must work on Mac OS.
-6
votes
2 answers

How to write objects to a file

probably something INCREDIBLY easy haha but i am having so much trouble trying to figure out the code i would need to write to get the GetArea calculation to be wrote to a file here is some of the code all help appreciated :) using System; using…
-7
votes
1 answer

I am searching for a way to save and read a file easily in python 3.5.2 (It doesn't need to be readable by humans.)

I am needing help with this as i am using it in part of my test and i would also like to use it to create a save file for a python game.
1 2 3
23
24