bash Column to array

Hi

I have a file with just one column, and i'd like to save it in a bash array.

file_in

then, i want save the column in a bash array in order to get:

array[0]==word1, array[1]==word2....array[3]==word4

I can't figure out how to do it. Can anyone help please?

thanks
D

EDIT: Sorry, i solved. I've found the solution here in another post. thx. here the post: saving values from awk expression into shell array

What may or may not work:

ARRAY=( $( cat in.file ) )

Yea as i edited in the first post i found there the same solution you suggest.

thanks for help

D

array=( $( < "$file" ) )

Or, with bash 4.0:

mapfile -t array < "$file"

thanks for the different solution

D.