Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!, DotBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
Files
Upload Rules File Index | Search | Recent Uploads
» Root » SmaugFUSS » Smaug Snippets
New file handling functions
Author Submitted by Version D/L File Size Date Added Last Updated

Keberus/Darien Keberus 246 9.34 KB Dec 21, 2008 Feb 28, 2010

Description
File handling functions for SMAUG by Greg (Keberus Maou'San ) Mosley and Darien (ldevil@hotmail.com)

This code is meant to replace fopen and fclose calls so the mud can keep track of which files are
open and the location from where they file opening was called. It now also writes to a temporary
file first, then once all the writing is done, it renames the file to minimize the likelihood
of corrupting files.

2/28/10 -Updated to fix positioning of nulling out FilesOpen and First/Last File data.

Revisions: 3
Rating: | Download | Comments(2)
User Comments For: New file handling functions
By: GatewaySysop
Installed this into my own MUD, which is branched off of a heavily modified SmaugFUSS 1.4 and it worked pretty much without a hitch. Proud to see no open files on the first run. :-P

Very good utility and very well written up. Thanks very much for sharing with the community!
       

By: 6Dragons
Worked like a charm, very nice.

Vladaar
http://6dragons.org