tmp update

This commit is contained in:
2024-09-19 11:24:17 +08:00
parent f1cc876972
commit 2901590f00
9 changed files with 68 additions and 33 deletions

View File

@@ -133,10 +133,13 @@ Please see instructions or contact the author for more information.");
// 保存文本文件
if (type_str == "txt")
{
if (del_str == ",") out_name += ".csv";
else out_name += ".txt";
gctl::text_descriptor desc;
desc.file_name_ = out_name;
desc.delimiter_ = del_str[0];
desc.head_strs_ = head_info;
if (del_str == ",") desc.file_ext_ = ".csv";
gctl::save_vector2d2text(out_name, out_data, del_str[0], '#', &head_info, gctl::ColMajor);
gctl::save_vector2d2text(desc, out_data, gctl::ColMajor);
return 0;
}