static void Main(string[] args) { string ss = @"ACTION,SEQUENCE_CODE,TIMEPOINT,VALUE"; string st = ConstructByCsv(ss, ','); var t = ftp.FtpHelper.GetFileList("/"); ReadFile.CopyFile(@"C:\Users\duanys\Desktop\officework\数据对接\超对称数据\e-commerce_data_daily.csv", @"C:\Users\duanys\Desktop\officework\数据对接\超对称数据\test.txt"); string begin = ""; string end = ""; if (args.Length != 2) { Console.WriteLine("param error"); return; } else { begin = args[0]; end = args[1]; Console.WriteLine("Extract data from" + begin + " to " + end); Console.ReadKey(); } string file = Directory.GetParent("..").FullName; file += @"\examples\1.pdf"; PdfParse pdf = new PdfParse(file); Console.WriteLine(pdf.Content); //创建xml XmlTest.CreateXml(); string name = @".\页脚未去除.pdf"; //测试访问目录 DirTest.TravelDir(); }
static void Main(string[] args) { string path = @"D:\舆情数据"; path = DirTest.CreateDir(path); string filaName = @"D:\downloads\2019-03-187bca3f2b-cbbe-47b1-be18-0a8d4a7c032f-yhtx.T_INDEX_WEIGHT_TX.json"; //string json = File.ReadAllText(filaName); JObject root = null; using (System.IO.StreamReader file = System.IO.File.OpenText(filaName)) { using (JsonTextReader reader = new JsonTextReader(file)) { root = (JObject)JToken.ReadFrom(reader); } } for (int i = 0; i < root.Count; i++) { JObject node = (JObject)root[i.ToString()]; string json = node.ToString(); Trade trade = JsonConvert.DeserializeObject <Trade>(json); } }