Subj : Syntax
To : MRO
From : DesotoFireflite
Date : Mon Mar 07 2022 01:18 pm
Re: Syntax
By: MRO to DesotoFireflite on Mon Mar 07 2022 09:30 am
MR> Re: Syntax
MR> 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.
MR> i probably could have done this like 15 or more years ago with baja, but I
MR> can't process the way to do it now.
I hear you, at 70, I'm loosing a lot of my skill set also. <BFG>
MR> what i would do (which requires no brain power) is to cat your new line to
MR> a new file, then cat your current list to that file, then move that file
MR> over your info.lst
MR> or if your list file has a date or something sortable, you could just sort
MR> the file.
Both good ideas, but I like the sort issue best. I may be able to pull that off, but I will have to look at the file first.
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!
--- The truth will set you free. But first it'll piss you off.
� Synchronet � Valhalla Home Services � USA �
http://valhalla.synchro.net