wxSnippets Logo   wxWidgets Code
  S N I P P E T S
bool LoadStringFromFile(const wxString &strFileName,wxString &strcontent)
{
    strcontent =""
    wxFFile file(strFileName.c_str(),"rb");
    if (file.IsOpened() == FALSE)
    {
        return false;
    }
    file.ReadAll(&strcontent);
    file.Close();
   
    return true;
}






No comments are included for this article. Submit a comment with your feedback/suggestions.

Click to View Printer Friendly Version