[Swift-user] multiple files for each app call

Ben Clifford benc at hawaga.org.uk
Mon Jun 15 09:01:24 CDT 2009


On Mon, 15 Jun 2009, Hodgess, Erin wrote:

> Would this be appropriate for an array of files, please?

You can return an array or a structure; or you can return multiple return 
parameters from a procedure.

An array makes sense if the files are named numerically, for example 
a0001.txt a0002.txt, ...

To return multiple files, you can declare multiple return values from a 
procedure like this:

(file a, file b)  myproc() {
...
}

-- 




More information about the Swift-user mailing list