JsonHelperReadJsonFromFile Method
Reads the Json from a file.
Namespace: Common.Core.ClassesAssembly: Common.Core (in Common.Core.dll) Version: 2.1.5
public static string? ReadJsonFromFile(
string fileName
)
- fileName String
- Json file name.
String is returned if the file could not be accessed.
ArgumentException | Thrown when one of the arguments provided to a method is not valid. |
IOException | Thrown when an I/O error occurs. |
NotSupportedException | Thrown when an invoked method is not supported, or when there
is an attempt to read, seek, or write to a stream that does not support the invoked functionality. |
OutOfMemoryException | Thrown when there is not enough memory to continue. |
SecurityException | Thrown when a security error is detected. |
UnauthorizedAccessException | Thrown when the operating system denies access because of an I/O error or a specific type of security error. |