anyone know how i can store an exsiting text file (file.txt), in an array of object. and then print the content of the file i.e printing the array

thanks in advance for the code