# Content test.bb

Post Reply
User avatar
Dutchman
Posts: 151
Joined: Tue Aug 06, 2019 4:47 pm
Location: Netherlands

# Content test.bb

Post by Dutchman » Wed Nov 20, 2019 12:32 pm

# Content test.bb is a test and demo program for "! Folder utils"

Code: Select all

' "# Content test"
{/Extensions/Files/! Folder utils}
PRINT "Content of /Extensions/"
F$=".temp"
CALL Content(f$,".."," ")
FILE DELETE f$
END

'--- ContentInfo required by 'Content'
DEF ContentInfo(Dir$,File$)
'To be adapted by the user
'This function will be called by function 'Content(…)'
'File$ will contain the name of the file which
'just has been written to the target file.
'- Example: print visible content
  IF (STRLEFT File$,1)<>"." THEN PRINT Dir$+File$
END DEF
Output on console:

Code: Select all

Content of /Extensions/
../! Template
../Contents.bb
../Contents.txt
../Arrays/! Array utils
../Arrays/# Load test.bb
../Console/! pt&mm
../Console/# pt&mm test.bb
../Files/! Folder utils
../Files/# Content test.bb
../Graphics/! Col_ utils
../Graphics/# Col_plot test.bb
../Interface/! Buttons
../Interface/! Int_
../Interface/# Int_ Defaults.bb
../Math/! DSP utils
../Math/! Math utils
../Math/# DSP_FIRgain test.bb
../Math/# Odd Even Crop Integer.bb
../Misc/! Time utils
../Misc/# Time functions.bb
../Strings/! String utils
../System/! Sys utils
../System/! Sys_Spec
../System/! Sys_calibrate
../System/# Error test.bb
../System/# Set zoomfactor.bb
It is still a long way to go

Post Reply