1.示例 // 写数据到文件 char buffer[128] = { 0}; int tmp; float tmp1; sprintf(buffer," echo %d , %.2f >> /home/fmsh/test.txt",tmp,tmp1)