View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000167 | LDMud | Efuns | public | 2004-11-26 21:05 | 2009-09-27 16:17 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0000167: New efun truncate_file() | ||||
Description | Short: new efun truncate_file() From: Alfe Date: Wed, 16 Dec 1998 21:11:51 +0100 (MET) Type: Feature State: Acknowledged speaking of such: i'd like a truncate_file() efun which truncates files (you guessed that from the name already?). the current simulefun implementation in TubMud for that function is rather ugly, copying the file to a new one until the truncate position is reached and then removing the original and renaming the copy. for copying it also has to work around the read/write_bytes limitation. Note: make this a special mode of copy_file(), e.g. copy_file(from,to,start,len)? | ||||
Tags | No tags attached. | ||||
External Data (URL) | |||||
|
ok, truncation can be achieved with write_file(,,1), but not from a specific position onwards. But is it really common to just truncate a file to a certain length without knowing whats inside? And if I know the data, then probably I can just use write_file(file, data, 1). Or do you have really big files in mind? |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-11-26 21:05 |
|
New Issue | |
2009-09-27 16:17 | zesstra | Note Added: 0001317 |