• File modes

    From Sean Dennis@1:18/200 to All on Mon Nov 14 09:28:16 2005

    Hi, everyone.

    I wrote a simple CGI using VP/2 to show the last ten callers to my BBS (you can see the CGI in action at http://outpostbbs.darktech.org/cgi-bin/last10.exe), but I think I messed something up...every so often, there will be an error that appears (I/O Error 131). I think it's because I'm opening the file in the wrong mode and that I should open it in read-only mode.

    How do I open the file in read-only mode? I'm familiar with this, but have never needed to do this under Pascal.

    Thanks in advance for any help.

    Later,
    Sean

    // hausmaus@darktech.org | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - outpostbbs.darktech.org (1:18/200)
  • From Björn Felten@2:203/2 to Sean Dennis on Mon Nov 14 18:01:27 2005
    How do I open the file in read-only mode?

    begin
    FileMode:=$40;
    .....
    .....
    end.

    ---
    * Origin: news://felten.yi.org (2:203/2)
  • From Sean Dennis@1:18/200 to Björn Felten on Mon Nov 14 15:20:28 2005
    *** Quoting Björn Felten from a message to Sean Dennis ***

    begin FileMode:=$40; ..... ..... end.

    Thanks. :)

    Later,
    Sean

    // hausmaus@darktech.org | http://outpostbbs.net | ICQ: 19965647

    --- Telegard/2 v3.09.g2-sp4/mL
    * Origin: Outpost BBS - outpostbbs.darktech.org (1:18/200)