Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

JacquesBrits

@JacquesBrits
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • getting directory list in creation date order
    J JacquesBrits

    Hi guys I have the code to get the directory list of the xml files in an folder but the problem is that i want to get the files in the creation date order. in other words each file has got an date it was created. now i want to load all these xml files into an list array and in the creation date order. is this possible? :confused: my code sofar:

        private String\[\] GetDirectory(String XmlFilePath)
        {
            List<String> strList = new List<string>();
    
            FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(XmlFilePath);
            request.Credentials = new NetworkCredential(Username, Password);
            request.Method = WebRequestMethods.Ftp.ListDirectory;
            StreamReader sr = new StreamReader(request.GetResponse().GetResponseStream());
    
            while (!(sr.EndOfStream))
            {
                strList.Add(sr.ReadLine());
            }
    
            sr.Close();
            sr = null;
    
            return strList.ToArray();
        }
    
    C# data-structures xml help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups