代码如下:
private void fileFind()
{
OpenFileDialog FD = new OpenFileDialog();
FD.Filter = "XML Files |*.xml";
while (?)
{
}
}
如何写WHILE语句才能让我在目标文件夹下存在XML文件的时候不退出该过程?
private void fileFind()
{
OpenFileDialog FD = new OpenFileDialog();
FD.Filter = "XML Files |*.xml";
while (?)
{
}
}
如何写WHILE语句才能让我在目标文件夹下存在XML文件的时候不退出该过程?
---------
觉得有点绕.....
用while(true){}好了,一定不会退出,呵呵.
while(Exist(*.xml))
{
你的处理
}
{
}
while (true)
{
}
loop: ;
goto loop;
do
{
} while (true);
有这样的方法吗?
while (true) 肯定不会主动退出。