结构化读取csv中的光谱数据
This commit is contained in:
@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace mainProgram
|
||||
{
|
||||
@ -45,6 +46,55 @@ namespace mainProgram
|
||||
|
||||
private void RadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
SpectralDataReaderWriter xx = new SpectralDataReaderWriter(@"D:\Desktop\0easySifProject\1raw\2021_12_16\beijing_17_57_44.csv");
|
||||
|
||||
|
||||
string name = xx.mDataTable.Rows[16][0].ToString();
|
||||
|
||||
int i = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//mProjectManager.
|
||||
|
||||
|
||||
|
||||
|
||||
//string[] sourceFilesPath = Directory.GetFileSystemEntries(sourceFolderName);
|
||||
|
||||
//for (int i = 0; i < sourceFilesPath.Length; i++)
|
||||
//{
|
||||
// string sourceFilePath = (sourceFilesPath[i]).Replace("\\", "/");
|
||||
// string[] forlders = sourceFilePath.Split('/');
|
||||
|
||||
// if (File.Exists(sourceFilePath))
|
||||
// {
|
||||
// string dest = destFolderName;
|
||||
// string sourceFileName = Path.GetFileName(sourceFilePath);
|
||||
// File.Copy(sourceFilePath, Path.Combine(dest, sourceFileName), overwrite);
|
||||
// }
|
||||
// else if (Directory.Exists(sourceFilePath))
|
||||
// {
|
||||
// string lastDirectory = forlders[forlders.Length - 1];
|
||||
// string dest = Path.Combine(destFolderName, lastDirectory).Replace("\\", "/");
|
||||
|
||||
// if (!Directory.Exists(dest))
|
||||
// {
|
||||
// Directory.CreateDirectory(dest);
|
||||
// }
|
||||
// CopySubFun(sourceFilePath, dest, overwrite);
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user