function  to read vector from file added