Swift - Read/write array of arrays to/from file
<p><a href="https://github.com/ghostpotato/SE-UILabel-Nil" rel="noreferrer">Here</a> are my files.</p>

<p>How can I write this array:</p>

<p><code>var listOfTasks = [["Hi", "Hello", "12:00"],["Hey there", "What's up?", "3:17"]]</code></p>

<p>to a <code>.txt</code> file (<code>file.txt</code>)? I know there are other questions about this, but they're in other languages (not Swift). I'd like for it to work on an actual iPhone. I'm happy to provide additional information if necessary. I'm new to Swift, so excuse my question if it seems too simple. <strong>NOTE: I am asking specifically about arrays containing arrays.</strong></p>

<p>Thanks in advance!</p>