I have declared an empty list. I want to store in that one some strings from a text file. If I am doing without creating TXT_to_PList it is working smoothly. But using TXT_to_PList length of deTrimis array will be 0. Why?
deTrimis = []
def TXT_to_PList(fileName,array):
    with open(fileName) as f:
        array = f.read().splitlines()
TXT_to_PList('strings.txt',deTrimis)
print (len(deTrimis))
 
     
    