home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY1 / FNDFIL.ZIP / README < prev   
Text File  |  1990-02-19  |  633b  |  23 lines

  1. FindFile.PBU was compiled in the IDE using the options that are in the
  2. FindFile.BAS source code.
  3.  
  4. FF.BAS is a demo that can show a directory of files in the current
  5. directory.
  6.  
  7.  Compile the program and run it. When the demo asks for "File mask", input 
  8. the filename you want, or wild cards such as *.* or *.bas or p??d.* .
  9.  
  10.  Find File consists of two Functions. 
  11.     FINDFIRST
  12.     FINDNEXT
  13.  
  14.  FindFirst must always be called first.
  15.     a$=FindFirst$(mask$)
  16.  and if it is other than nul, then get FindNext until it returns a nul
  17.     DO 
  18.       a$=FindNext$
  19.       if a$="" then exit loop
  20.       print a$
  21.     LOOP 
  22.  
  23.