#include <vector>
#include <iostream>
#include <fstream>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
using namespace std;
int main()
{
ofstream outFile("./write.txt");
string strLine;
fstream inFile("./read.txt", ios_base::in);
/* 读文件 */
while(inFile >> strLine)
{
/* 按逗号分隔字符串 */
vector<string> asFlagPicInfo;
boost::split(asFlagPicInfo, strLine, boost::is_any_of(","), boost::token_compress_off);
int x = 5;
int y = 10;
/* 写文件 */
outFile << "{" << x << "," << y << "}," << endl;
}
inFile.close();
outFile.close();
return 0;
}