Skip to content
  • Lioncash's avatar
    common/file_util: Make ReadFileToString and WriteStringToFile consistent · 2b1fcc8a
    Lioncash authored
    Makes the parameter ordering consistent, and also makes the filename
    parameter a std::string. A std::string would be constructed anyways with
    the previous code, as IOFile's only constructor with a filepath is one
    taking a std::string.
    
    We can also make WriteStringToFile's string parameter utilize a
    std::string_view for the string, making use of our previous changes to
    IOFile.
    2b1fcc8a
Loading