A .bas file is simply a text file that conforms to the format that picbasic expects and can compile. You can declare arrays of variables in that file that can be used in the remainder of the program.