logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FileUtils

    Utility class for file operations

    Inheritance
    object
    FileUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Utils
    Assembly: Serenity.Shared.dll
    Syntax
    public static class FileUtils

    Methods

    ReadFile(string)

    Read the entire content of a file as a string

    Declaration
    public static string ReadFile(string path)
    Parameters
    Type Name Description
    string path

    The file path to read from

    Returns
    Type Description
    string

    The content of the file as a string

    In this article
    © 2026 Serenity. All Rights Reserved