readConsistent


Description:

public string? readConsistent (Path path)

Reads text with basic consistency validation.

File is read twice and compared. If content or size changes between reads, this method treats it as inconsistent and returns null.

Parameters:

path

target file path.

Returns:

stable text content, or null if inconsistent/unreadable.