C++ Reading from file

I am trying to read from a file

The file is like this

% XI=(0,-0.5)
% XF=(80,30)

%< LAYER 1

% INTI=LIN

%( INTERFACE
0 0
80 0
%)

char      sval[256];

  while ( !file->eof() )
    {

      line++; 

      file->get(sval, 256, ' ');
      strcpy(s,sval);

      cout << "sval:" << sval << "." << endl;

When I print sval it is putting it at the end rathes than from the beginning

sval:
%(.

Is this your entire code if not then post it here...because why are you using strcpy...