
function [out]=readwrite(sd, string)
fprintf(sd, string);
echostr = fscanf( sd );
%if( !strcmp( string, echostr ) )
%  printf('readwrite:: Error - Command %s not accepted.\n', string)
%end
out = fscanf( sd )
return
