nxtlib/src/Brick.cs
/// <summary>
/// Find all files matching a pattern.
/// </summary>
/// <param name="fileMask">Pattern, can use wildcards (*).  Acceptable formations are
/// "filename.extention", "filename.*", "*.extension", and "*.*".</param> 
/// <returns></returns>
Find all files matching a pattern.
Find all files matching a pattern .
public string[] FindFiles(string fileMask)
        {
            List<string> fileArr = new List<string>();
            try
            {
                Protocol.FindFileReply reply = link.FindFirst(fileMask);
                while (reply.fileFound)
                {
                    fileArr.Add(reply.filename);
                    reply = link.FindNext(reply.handle);
                }
            }
            catch (NXTFileNotFound) { }
            return fileArr.ToArray();
        }
public string [ ] FindFiles ( string fileMask ) { List < string > fileArr = new List < string > ( ) ; try { Protocol . FindFileReply reply = link . FindFirst ( fileMask ) ; while ( reply . fileFound ) { fileArr . Add ( reply . filename ) ; reply = link . FindNext ( reply . handle ) ; } } catch ( NXTFileNotFound ) { } return fileArr . ToArray ( ) ; }
Find all files matching a pattern.
Find all files matching a pattern .
None
fileMask
string
Pattern, can use wildcards (*).  Acceptable formations are
"filename.extention", "filename.*", "*.extension", and "*.*".
Pattern can use wildcards ( * ) . Acceptable formations are " filename . extention " " filename . * " " * . extension " and " * . * " .