Is it possible to create variables based on the number of lines in a file?
For example, assuming the file will always have an even-number of lines. If the file has 4 lines I want to create 2 variables. var1
will contain the first 2 lines and var2
will contain the following 2 lines. If the file has 10 lines I want to create 5 variables. Again the first var will have the first 2 lines, and the next var will have the following 2 lines and so on...