Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - findfstr() return the name of a file after a file find http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 findfstr()          Return the name of a file after a file find
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func char findfstr extern

 Arguments
   None.

 Return
   The name of the file.

 Description
   The findfstr() function returns the filename, directory name or the disk
   volume label most recently found by the findfirst() or findnext()
   functions. The filename or directory name returned does not include
   the full path or any drive identifier.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_findfstr
   ? "Directories and files in current directory"; ?
   if findfirst( "*.*", FIND_ANYFILE )
      repeat
         ? findfstr()          // print file name
      until .not. findnext()
   endif
   endproc

   proc main
   Test_findfstr()
   endproc

See Also: findfext() findfirst()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson