[Swift-user] Re: Read file and write to files

J A jamalphd at gmail.com
Wed Jan 27 19:59:01 CST 2010


Any suggestions on my question below?

Thanks


On 1/26/10, J A <jamalphd at gmail.com> wrote:
>
> Hi All:
>
> I am still learning the swift script.
>
> I have a text file (list.txt) contains the following:
>
>
> 3
> String1
> String2
> String3
>
>
> Where the first line contains the number of sentence with text.
>
> 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.
>
> Any suggestions on what to use or a sample code will be appreciated.
>
> Thanks,
> Jamal
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20100127/3dc9fa93/attachment.html>


More information about the Swift-user mailing list