CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #8
    Join Date
    Jun 2008
    Posts
    154

    Re: Check Directory for xml file

    to : ramkumarradhakrishnan

    That helped A LOT!!!

    here is successful code

    Code:
                DirectoryInfo dir = new DirectoryInfo(GameRef.GetDocumentsDirectory + @"\My Documents\My Games\RPGBXL");
                FileSystemInfo[] files = dir.GetFileSystemInfos("*xml");
                if(files[0] != null)
                {
                    manager.ChangeScreens(GameRef.PopUpScreenLoadFile);
                }
                else
                {
    
                    BeginException = true;
    
                }
    Thanks!
    Last edited by bixel; August 18th, 2010 at 07:21 PM. Reason: solved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured