<div>Hi All:</div>
<div> </div>
<div>I am still learning the swift script.</div>
<div> </div>
<div>I have a text file (list.txt) contains the following:</div>
<div> </div>
<div> </div>
<div>3</div>
<div>String1</div>
<div>String2</div>
<div>String3</div>
<div> </div>
<div> </div>
<div>Where the first line contains the number of sentence with text.</div>
<div> </div>
<div>I would like to read the file list.txt and output the strings into separate files where file1.txt contains "String1", file2.txt contains "String2", and so on.</div>
<div> </div>
<div>Any suggestions on what to use or a sample code will be appreciated.</div>
<div> </div>
<div>Thanks,</div>
<div>Jamal</div>
<div> </div>
<div> </div>