本文整理汇总了C++中TextFile::New方法的典型用法代码示例。如果您正苦于以下问题:C++ TextFile::New方法的具体用法?C++ TextFile::New怎么用?C++ TextFile::New使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextFile
的用法示例。
在下文中一共展示了TextFile::New方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OptionStore
void HypoMain::OptionStore()
{
wxString filename;
wxString outline;
filename = "Init/hypoprefs.ini";
TextFile opfile;
opfile.New(filename);
opfile.WriteLine(outline.Format("startmod %d", startmod));
opfile.WriteLine(outline.Format("numdraw %d", numdraw));
opfile.WriteLine(outline.Format("viewheight %d", viewheight));
opfile.WriteLine(outline.Format("viewwidth %d", viewwidth));
opfile.WriteLine(outline.Format("ylabels %d", ylabels));
opfile.WriteLine(outline.Format("datsample %d", datsample));
opfile.WriteLine(outline.Format("basic %d", basic));
opfile.WriteLine(outline.Format("diagnostic %d", diagnostic));
opfile.Close();
filename = "Init/hypopaths.ini";
opfile.New(filename);
opfile.WriteLine(datapath);
opfile.WriteLine(parampath);
opfile.WriteLine(outpath);
opfile.WriteLine(modpath);
opfile.Close();
}
示例2: BaseStore
void GraphBase::BaseStore(wxString path, wxString tag)
{
int i;
TextFile outfile;
wxString text, filename, filetag;
filename = "gbase-" + tag + ".dat";
//outfile.New(initpath + "/Graphs/" + filename);
outfile.New(path + "/" + filename);
for(i=0; i<numgraphs; i++) {
outfile.WriteLine(graphstore[i].StoreDat(GetTag(i)));
//outfile.WriteLine(text.Format
}
outfile.Close();
}
示例3: GHistStore
void Model::GHistStore()
{
wxString filename, filepath;
wxString text;
TextFile outfile;
int i;
//if(path == "") filepath = "Init";
//else filepath = path;
filepath = GetPath();
wxComboBox *gstag = mainwin->scalebox->gstag;
filename = modname + "gshist.ini";
outfile.New(filepath + "/" + filename);
for(i=gstag->GetCount()-1; i>=0; i--)
outfile.WriteLine(text.Format("graph %s", gstag->GetString(i)));
outfile.Close();
}
示例4: GetString
TagBox::~TagBox()
{
int i;
wxString filename, filepath, outline, text;
TextFile opfile;
//if(diagbox) diagbox->Write(text.Format("closing tag box %s\n", name));
// Tag history
if(name == "") return;
filename = name + "tags.ini";
filepath = path + "/Tags/";
if(!wxDirExists(filepath)) wxMkdir(filepath);
opfile.New(filepath + filename);
for(i=GetCount()-1; i>=0; i--) {
outline.Printf("tag %s", GetString(i));
opfile.WriteLine(outline);
}
opfile.Close();
}