added converting file to array method.  partially working