mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
default should be to truncate on open_write
This commit is contained in:
parent
ad2e154a5d
commit
010a35b735
@ -1197,6 +1197,10 @@ open_read(ifstream &stream) const {
|
|||||||
// appropriately as indicated; it is an error to call
|
// appropriately as indicated; it is an error to call
|
||||||
// open_read() without first calling one of set_text()
|
// open_read() without first calling one of set_text()
|
||||||
// or set_binary().
|
// or set_binary().
|
||||||
|
//
|
||||||
|
// If truncate is true, the file is truncated to zero
|
||||||
|
// length upon opening it, if it already exists.
|
||||||
|
// Otherwise, the file is kept at its original length.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
bool Filename::
|
bool Filename::
|
||||||
open_write(ofstream &stream, bool truncate) const {
|
open_write(ofstream &stream, bool truncate) const {
|
||||||
|
@ -150,7 +150,7 @@ PUBLISHED:
|
|||||||
bool scan_directory(vector_string &contents) const;
|
bool scan_directory(vector_string &contents) const;
|
||||||
|
|
||||||
bool open_read(ifstream &stream) const;
|
bool open_read(ifstream &stream) const;
|
||||||
bool open_write(ofstream &stream, bool truncate = false) const;
|
bool open_write(ofstream &stream, bool truncate = true) const;
|
||||||
bool open_append(ofstream &stream) const;
|
bool open_append(ofstream &stream) const;
|
||||||
bool open_read_write(fstream &stream) const;
|
bool open_read_write(fstream &stream) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user