Loading array?

IS it possible to load variables from a textfile into an array?

I want for an example load banan,orange,kiwi,apple form a text file into an array fruit.

fruit[]=“banan”,“orange”,“kiwi”, etc.