• files

    From Starbase@VERT/TLCBBS to All on Saturday, October 20, 2012 14:18:05
    Hello all. Just exploring baja to enhance my board and all some programs to
    the board. I am stuck on file access by baja. So here are the questions and ho pe someone can answer in detail

    1) I want to be able to read from a file for example 5 varables at a time and take a action depending on what is in the varables?


    2) I want to be able to write to a file for example 10 varables I get input from the user
    ~~

    3) I want to be able to detect if the file exist before writing or reading?



    I understand how to do this in basic but baja is new to me. So if someone can help with this I appreciate it

    ---
    þ Synchronet þ The Lost Chord BBS, Cheyenne, WY - thelostchord.dns2go.com:6080
  • From Digital Man@VERT to Starbase on Sunday, October 21, 2012 00:59:38
    Re: files
    By: Starbase to All on Sat Oct 20 2012 02:18 pm

    Hello all. Just exploring baja to enhance my board and all some programs to the board. I am stuck on file access by baja. So here are the questions and ho pe someone can answer in detail

    1) I want to be able to read from a file for example 5 varables at a time and take a action depending on what is in the varables?


    2) I want to be able to write to a file for example 10 varables I get input from the user
    ~~

    3) I want to be able to detect if the file exist before writing or reading?



    I understand how to do this in basic but baja is new to me. So if someone can help with this I appreciate it

    Yes, you can do all of that. For example, see exec/file_io.src.

    I would recommend using JavaScript instead however as it is much more powerful and Synchronet has a File class which provides even better than the file I/O support in Baja.

    digital man

    Synchronet "Real Fact" #16:
    "Vertrauen" (ver-trow-en) translates to "trust" in German, and was a band name. Norco, CA WX: 62.8øF, 87.0% humidity, 0 mph NW wind, 0.01 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Starbase@VERT/DMINE to Digital Man on Saturday, October 27, 2012 19:56:08
    Re: files
    By: Digital Man to Starbase on Sun Oct 21 2012 12:59 am

    Re: files
    By: Starbase to All on Sat Oct 20 2012 02:18 pm

    Hello all. Just exploring baja to enhance my board and all some programs the board. I am stuck on file access by baja. So here are the questions a ho pe someone can answer in detail

    1) I want to be able to read from a file for example 5 varables at a time and take a action depending on what is in the varables?


    2) I want to be able to write to a file for example 10 varables I get inp from the user
    ~~

    3) I want to be able to detect if the file exist before writing or readin



    I understand how to do this in basic but baja is new to me. So if someone can help with this I appreciate it

    Yes, you can do all of that. For example, see exec/file_io.src.

    I would recommend using JavaScript instead however as it is much more powerf and Synchronet has a File class which provides even better than the file I/O support in Baja.

    digital man

    Synchronet "Real Fact" #16:
    "Vertrauen" (ver-trow-en) translates to "trust" in German, and was a band na Norco, CA WX: 62.8øF, 87.0% humidity, 0 mph NW wind, 0.01 inches rain/24hrs

    Thanks I will check out file_io.src and javascript I have to explore that

    ---
    þ Synchronet þ Diamond Mine Online - bbs.dmine.net - Fredericksburg, VA USA