Click or drag to resize

FileIOHelper Class

Contains helpers for making names safe for use in the file system.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationFileIOHelper

Namespace: Altaxo.Serialization
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static class FileIOHelper

The FileIOHelper type exposes the following members.

Methods
 NameDescription
Public methodStatic memberGetFilterDescriptionForAllFiles Gets the filter description for all files.
Public methodStatic memberGetFilterDescriptionForExtensions Converts the file extensions to file filter.
Public methodStatic memberGetValidFullPathName Get a valid full file name out of a raw file name that can contain invalid characters. Those characters are replaced by unicode chars. Here, special measures are taken to not accidentally replace the question mark and colon in absolute file names, starting with e.g. C:\... or \\?\C:\....
Public methodStatic memberGetValidPathNameFragment Get a valid file name part out of a raw file name that can contain invalid characters. Those characters are replaced by unicode characters. Attention: the provided name should not be an absolute file name. This is because here, in a file name like C:\Temp.txt, the colon would be replaced by a unicode character. If an absolute name needs to be processed, use the function GetValidFullPathName(String). Backslash chars are sustained.
Top
Fields
 NameDescription
Public fieldStatic memberInvalidFileNameChars 
Top
See Also