Re: SyntaxWhat are you trying to achieve? If part of the file changes, could you
By: Digital Man to DesotoFireflite on Mon Mar 07 2022 08:58 am
Re: Syntax
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.
Leaving off O_APPEND will *overwrite* the portions of the file
you write to. There is no standard method for "inserting" data
into a file. You would have to read the file contents and
re-write them with the "inserted" data first, then the old data.
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
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 127:36:19 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |