OriginAnyParserReadFileVersion Method |
Reads the file version from an .opj or .opju file.
Attention: this call does not throw exceptions if the file is corrupt!
Instead you have to check the error argument!
Namespace: Altaxo.Serialization.OriginAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax public static (int FileVersion, int NewFileVersion, int BuildVersion, bool IsOpjuFile, string Error) ReadFileVersion(
Stream file
)
Parameters
- file Stream
- The file stream.
Return Value
ValueTupleInt32,
Int32,
Int32,
Boolean,
StringTuple of file version, new file version (contains the year), buildversion, whether it is an opju file, and a error string.
The function is considered successful if the returned error is null.
See Also