def Data_to_array(file): r = int x, y=[],[] data = [] line_num = 0 #call data P = open(file,\'r\') data = P.readlines() #Get it to