[Swift-user] Passing an array to swift?

Sheri Mickelson mickelso at mcs.anl.gov
Fri Apr 15 16:30:06 CDT 2011


I have two arrays I need to read in - a long one and a short one.  I'll probably put the long one 
into a file and read it in with readData.  The smaller one will, at most, only have 4 components so 
I'll probably just pass it in as a string and use strsplit.

Thanks, Sheri

Michael Wilde wrote:
> Maybe direct the array into a file (possibly with a "here document" which expands the array) and then read the file in Swift with readData() or process it with a Swift app() function?
> 
> - Mike
> 
> 
> ----- Original Message -----
>> Hello
>> Not directly because the interface is the command-line. Can you
>> give us more of a use case?
>> Justin
>>
>> On Fri, 15 Apr 2011, Sheri Mickelson wrote:
>>
>>> Hi,
>>>
>>> Is it possible to pass a c-shell array to swift? And if so, how do
>>> you
>>> do it?
>>>
>>> Thanks, Sheri
>>> _______________________________________________
>>> Swift-user mailing list
>>> Swift-user at ci.uchicago.edu
>>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>>>
>> --
>> Justin M Wozniak
>> _______________________________________________
>> Swift-user mailing list
>> Swift-user at ci.uchicago.edu
>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
> 



More information about the Swift-user mailing list