111,120
社区成员
发帖
与我相关
我的任务
分享
找不到回复的骂我后来找到原因,在
FolderBrowserDialog fbd = new FolderBrowserDialog();
if (fbd.ShowDialog() == DialogResult.OK)
{
_FilePath = fbd.SelectedPath+"//"; //加一个“//”
}
但是跳到
private void InventoryReadSave()
{
Int32 TagCount = 0;
String[] TagNumber = new String[0];
Byte value;
String RvsTag;
while (_AutoRun)
{
value = reader.Inventory(ModulateMethod.ASK, InventoryModel.Multiple, ref TagCount, ref TagNumber);
if (value != 0x00)
{
//AddList(String.Format("错误:Inventory命令执行失败,错误代码:0x{0:X2}!", value));
Thread.Sleep(500); ///到这就不往下走了,又跳到上一级,郁闷
continue;
死活走不到下面这块
AddList(String.Format("Inventory执行成功,找到了{0}个卡片:", TagCount));
foreach (String Tag in TagNumber)
{
RvsTag = "";
for (int i = 0; i < 8; i++)
{ RvsTag += Tag.Substring((7 - i) * 2, 2); }
String FileName = String.Format("{0}{1}.txt", _FilePath + "\\", RvsTag);
using (FileStream fs = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write))
{
using (StreamWriter sw = new StreamWriter(fs, Encoding.Default))