in reply to Passing Array to seperate file

It depends. It depends on when you want to run that other program. Do you want to run both programs simultaneously? Will the other program be started from the first? Will the other program be run sometime after the first program?

Possible ways of passing information from one program to another include, but are not limited to: on disk storage (files, databases), environment variables, command line arguments, pipes, sockets, shared memory.

What's the most appropriate method depends on many factors.

Abigail