Subj : mail_send
To   : Hax0r
From : PistolGrip
Date : Wed Jul 26 2000 10:31 pm

RE: mail_send
BY: Hax0r to Digital Man on Wed Jul 26 2000 11:54 pm

> Heh, I know it would probably be alot of work, but could you *please* implem
> some sort of looping structure in the next version of baja?  a for loop, do
> loop, whatever.....something.  It would just make file I/O that much easier.
> was really surpised to see a somewhat comprehensive file i/o support, but no
> looping structure.

I find it pretty easy in baja.  For example.

   fopen tmpfile O_RDONLY "%n..\somedir\somefile.asc"
      if_false
       print "\r\n\r\nError Loading File - SOMEFILE.ASC"
       return
      end_if

         :read_loop
           feof tmpfile
            if_true
              fclose tmpfile
              pause
              goto top
            end_if

             fread_line tmpfile str
             truncsp str
             printf "%s\r\n" str
             goto read_loop

:top
-----------------

Pretty straight-forward.

Dave


---
� Synchronet � WasteLand BBS � telnet://wasteland.darktech.org