If you write each variable to a line, then you should try setting multiple variables in each line. This can be easily done by using excel or something like this. Still, you can create subs and call them from inside your try-catch block, no matter how big the arrays are. Furthermore, why not getting the data from a file? You can even use encryption if you worry for data's safety.