注意: fseek( stream, 1L, SEEK_SET );
C中<fstream>
fstream fs("e://fuck.txt",ios::in | ios::out);
if (!fs.bad)
{
fs<<"this is my put in numbers"<<endl;
//输入到txt文本。
fs.close();
fs.open("e://fuck.txt",ios::in);
cout<<fs.rdbuf()<<endl;
//直接输出内容
} //读入会有问题,只是直接显示而已
FILE *f=fopen("e://fuck.txt","r+");
int a=3;
int b;
fprintf(f,"%d ",b);
//输入
fscanf(f,"%d ",c);
//输出.
matlab
s=load('filename');
x = 0:.1:1; y = [x; exp(x)];
fid = fopen('exp.txt','w');
fprintf(fid,'%6.2f %12.8f/n',y);
fclose(fid);
display('you)');