SNOBOL4DIRS(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– SNOBOL4DIRS πŸ’–

okay bestie, so this is the filesystem directory interface for SNOBOL4 β€” it's giving snobol4dirs, and it's from the CSNOBOL4 manual. basically it's your lil backstage pass to peek at directories like a main character. πŸŽ€


✨ SYNOPSYS ✨

yes the heading is spelled like that in the original, we don't fix, we respect πŸ’…
-INCLUDE 'dirs.sno'

🌸 DESCRIPTION 🌸

okay so here's the whole cast, no cap:

  • OPENDIR(path) β€” opens up a directory and hands you back a handle. that handle is your bestie for the rest of the convo 🫢
  • READDIR(handle) β€” gives you a filename... or it fails. that's it, that's the vibe. sometimes it slays, sometimes it doesn't 😭
  • REWINDDIR(handle) β€” rewinds a directory handle. like hitting the rewind button on the whole directory, we're going back to the start, periodt βͺ
  • TELLDIR(handle) β€” reports where the directory handle is at right now. lil position check, very demure. (heads up tho: this one may not be available on all platforms) πŸ™ˆ
  • SEEKDIR(handle,position) β€” adjusts the directory handle position. so you can scoot it wherever you want it to be, iconic ✨
  • CLOSEDIR(handle) β€” closes the directory handle. say bye bye, we're done here πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

snobol4(1), opendir(3), readdir(3), rewinddir(3), telldir(3), seekdir(3), closedir(3)

go read those too, they're the supporting cast, and honestly? they ate πŸ’…


πŸ¦‹ AUTHOR πŸ¦‹

Philip L. Budne


k that's the whole page, you're so welcome πŸ’– this was CSNOBOL4B 2.3.1, dated March 31, 2022 β€” mwah, go read a directory or something, slay πŸŒˆβ­πŸ’€
πŸ“¦ where this page comes from