<pre> import sys def main(): infile = sys.argv[0] Array = ["f1", "f2", "f3", "f4"] with open(infile, "r") as input_file: output_list = [] for rec in input_file.read().splitlines(): rec = rec[:-3] FBlist = [rec[i:i+2] for i in range(0, len(rec), 2)] output_list.append(FBlist) print(output_list) main()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)