Create ไฟล์ CSV แล้วขึ้น Could not find a part of the path ค่ะ
Code
Could not find a part of the path 'C:\WINXP\system32\txt\BM_SSPTH_Txn_0001_20120221.csv'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINXP\system32\txt\BM_SSPTH_Txn_0001_20120221.csv'.
Source Error:
Line 169: string dt1 = convDT.To_yyyyMMdd(DateTime.Today);
Line 170:
Line 171: FileStream fs = new FileStream(@"txt\\BM_SSPTH_Txn_0001_" + dt1 + ".csv", FileMode.Create);
Line 172: StreamWriter sw = new StreamWriter(fs);
Line 173: sw.WriteLine("File Date" + "," + "Source of Input" + "," + "BIG Reward ID" + "," + "Txn Date" + "," + "Txn Type" + "," + "Amt Txn" + "," + "BIGGIES Txn" + "," + "TxnDescription" + "," + "RefKey" + "," + "MID");