File::appendText() return value


#1

Shouldn’t this return the writeText() result?

bool File::appendText (const String& text,
                       const bool asUnicode,
                       const bool writeUnicodeHeaderBytes) const
{
    FileOutputStream out (*this);

    if (out.failedToOpen())
        return false;

    return out.writeText (text, asUnicode, writeUnicodeHeaderBytes);
}

Rail


#2

Yep. (I guess when that method was written, writeText() didn’t return a bool!)


#3

:slight_smile:

Rail