loading the contents of file int array