Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Owe no man any thing... -- Romans 13:8


dovenet / Synchronet Baja / Re: Syntax

SubjectAuthor
* Re: SyntaxNelgin
`- Re: SyntaxDesotoFireflite

1
Re: Syntax

<20220313011239.5118fda9@wibble.sysadmininc.com>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=87&group=DOVE-Net.Synchronet_Baja#87

  copy link   Newsgroups: DOVE-Net.Synchronet_Baja
From: nelgin@VERT/EOTLBBS (Nelgin)
To: All
Subject: Re: Syntax
Message-ID: <20220313011239.5118fda9@wibble.sysadmininc.com>
Date: Sat, 12 Mar 2022 18:12:39 -0600
X-Comment-To: All
Path: rocksolidbbs.com!not-for-mail
Organization: End Of The Line BBS
Newsgroups: DOVE-Net.Synchronet_Baja
In-Reply-To: <622639C1.4434.bajaprog@vert.synchro.net><62264B80.48.dove-syncbaja@valhalla.synchro.net>
References: <622639C1.4434.bajaprog@vert.synchro.net><62264B80.48.dove-syncbaja@valhalla.synchro.net>
X-FTN-PID: Synchronet 3.19c-Linux master/e201f3cbd Mar 6 2022 GCC 9.3.0
X-FTN-CHRS: UTF-8 4
WhenImported: 20220312232726-0800 41e0
WhenExported: 20220313055750-0700 c1e0
ExportedFrom: VERT bajaprog 4437
WhenImported: 20220313011239-0600 4168
WhenExported: 20220313012724-0600 4168
ExportedFrom: EOTLBBS dove-syncbaja 120
X-Newsreader: Claws Mail 4.0.0git423 (GTK+ 3.24.20; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
 by: Nelgin - Sun, 13 Mar 2022 00:12 UTC

On Mon, 7 Mar 2022 13:14:24 -0500
"DesotoFireflite" <desotofireflite@VERT/VALHALLA> wrote:
> Re: Syntax
> By: Digital Man to DesotoFireflite on Mon Mar 07 2022 08:58 am
>
> DM> Re: Syntax
> DM> By: DesotoFireflite to All on Mon Mar 07 2022 08:41 am
>
> >> I want to be able to add to the top of a file, but I can only
> >> find out how to add to the bottom of a file. Currently I am
> >> using:
>
> >> fopen file 0_CREAT|0_WRONLY|O_APPEND "C:\SBBS\XTRN\INFO\INFO.LST"
> >>
>
> >> and that appends to the bottom of the list, but I want to show the
> >> newest to oldest, not oldest to newest.
>
> >> I'm assuming I just leave off the O_APPEND, but is there a correct
> >> way.
>
> DM> Leaving off O_APPEND will *overwrite* the portions of the file
> DM> you write to. There is no standard method for "inserting" data
> DM> into a file. You would have to read the file contents and
> DM> re-write them with the "inserted" data first, then the old data.
> DM>
>
> Ok, Thanks, that was what I was afraid off... Looks like I have some
> work to do. <BFG>
>
> SysOp: C.G. Learn, AKA: DesotoFireflite
> Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
> Valhalla II! - (GAP) - bbs.valhallabbs.com:24
> Valhalla III! - (RemoteAccess) - bbs.valhallabbs.com:5023
> Valhalla IIII! - (Dungeons & Dragons BBS) - bbs.valhallabbs.com:26
> Valhalla Home Services Web! - http://bbs.valhallabbs.com
> A Gamers Paradise - Over 150 Registered Online Game Doors!
> Home Of Odin's Maze Game Server!
>
> --- CAT (n.), Furry keyboard cover.
> � Synchronet � Valhalla Home Services � USA �
> http://valhalla.synchro.net
What are you trying to achieve? If part of the file changes, could you
use an include to read in the bit that changes, and then just write
your included file?
--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com

Re: Syntax

<622E3549.51.dove-syncbaja@valhalla.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=88&group=DOVE-Net.Synchronet_Baja#88

  copy link   Newsgroups: DOVE-Net.Synchronet_Baja
From: desotofireflite@VERT/VALHALLA (DesotoFireflite)
To: Nelgin
Subject: Re: Syntax
Message-ID: <622E3549.51.dove-syncbaja@valhalla.synchro.net>
Date: Sun, 13 Mar 2022 07:17:45 -0400
X-Comment-To: Nelgin
Path: rocksolidbbs.com!not-for-mail
Organization: Valhalla Home Services
Newsgroups: DOVE-Net.Synchronet_Baja
In-Reply-To: <20220313011239.5118fda9@wibble.sysadmininc.com>
References: <20220313011239.5118fda9@wibble.sysadmininc.com>
X-FTN-PID: Synchronet 3.19c-Win32 master/528edd9f4 Mar 3 2022 MSC 1929
X-FTN-CHRS: CP437 2
WhenImported: 20220313112210-0700 c1e0
WhenExported: 20220313115755-0700 c1e0
ExportedFrom: VERT bajaprog 4438
WhenImported: 20220313141745-0400 c12c
WhenExported: 20220313142202-0400 c12c
ExportedFrom: VALHALLA dove-syncbaja 51
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: DesotoFireflite - Sun, 13 Mar 2022 11:17 UTC

Re: Re: Syntax
By: Nelgin to All on Sun Mar 13 2022 01:12 am

Ne> On Mon, 7 Mar 2022 13:14:24 -0500
Ne> "DesotoFireflite" <desotofireflite@VERT/VALHALLA> wrote:
>> Re: Syntax
>> By: Digital Man to DesotoFireflite on Mon Mar 07 2022 08:58 am

> DM>> Re: Syntax
> DM>> By: DesotoFireflite to All on Mon Mar 07 2022 08:41 am

> >>> I want to be able to add to the top of a file, but I can only
> >>> find out how to add to the bottom of a file. Currently I am
> >>> using:

> >>> fopen file 0_CREAT|0_WRONLY|O_APPEND "C:\SBBS\XTRN\INFO\INFO.LST"

> >>> and that appends to the bottom of the list, but I want to show the
> >>> newest to oldest, not oldest to newest.

> >>> I'm assuming I just leave off the O_APPEND, but is there a correct
> >>> way.

> DM>> Leaving off O_APPEND will *overwrite* the portions of the file
> DM>> you write to. There is no standard method for "inserting" data
> DM>> into a file. You would have to read the file contents and
> DM>> re-write them with the "inserted" data first, then the old data.
DM>

>> Ok, Thanks, that was what I was afraid off... Looks like I have some
>> work to do. <BFG>

Ne> What are you trying to achieve? If part of the file changes, could you
Ne> use an include to read in the bit that changes, and then just write
Ne> your included file?

It's just a graffiti wall I'm working on, but I wrote it to put the new info at the bottom, but now I've changed my mind and wan't the newest additions at the top. Thanks for the suggestion. I'm gonna play with it in a few days as soon as time let's me. I got side tracked working on another project. Again, Thanks

SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
Valhalla II! - (GAP) - bbs.valhallabbs.com:24
Valhalla III! - (RemoteAccess) - bbs.valhallabbs.com:5023
Valhalla IIII! - (Dungeons & Dragons BBS) - bbs.valhallabbs.com:26
Valhalla Home Services Web! - http://bbs.valhallabbs.com
A Gamers Paradise - Over 150 Registered Online Game Doors!
Home Of Odin's Maze Game Server!

--- Don't eat the yellow snow!
■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor