[Swift-user] Read file and write to files
J A
jamalphd at gmail.com
Tue Jan 26 22:58:17 CST 2010
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/20100126/e6b56054/attachment.html>
More information about the Swift-user
mailing list