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:
%(.