Menu

How to iterate over files

2019-03-13
2019-03-13
  • Everton da Silva Marques

    I'm aware one can use FILES to list directory contents to screen.

    However I can't see a way to programmaticaly iterate over files in a directory.

    I can't believe that GW-BASIC didn't provide a straightforward mechanism for scanning files from a directory.

    Has anyone ever tackled that problem?

     
  • Rob Hagemans

    Rob Hagemans - 2019-03-13

    In fact there's no straightforward way to do that in GW-BASIC. Programs of the time would in fact run FILES and read the output back from video memory with the SCREEN or PEEK function... Welcome to the 80s :)

     
    😄
    1
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.