1、filepath是文件路径
public void JXFile(string filepath)
{
//解析文件
string filename = filepath;
m_filename = Path.GetFileNameWithoutExtension(filename);
string newfile = OutTxt(m_filename);
int lastIndex = newfile.LastIndexOf('\\');
if (lastIndex != -1)
{
string result = newfile.Substring(lastIndex + 1);
Console.WriteLine(result); //
}
using (StreamReader reader = new StreamReader(filename))
{
// 跳过第一行
reader.ReadLine();
// 从第二行开始读取
string line;
while ((line = reader