DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSet Class / Read Method / Read(String) Method

The name of the file to read.

This is passed unmodified to the operating system, and it is therefore the container’s responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.




In This Topic
    Read(String) Method
    In This Topic
    Reads from an external DICOM file
    Syntax
    'Declaration
     
    
    Public Overloads Sub Read( _
       ByVal FileName As String _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As String
     
    instance.Read(FileName)
    public void Read( 
       string FileName
    )
    public:
    void Read( 
       String^ FileName
    ) 

    Parameters

    FileName

    The name of the file to read.

    This is passed unmodified to the operating system, and it is therefore the container’s responsibility to ensure either that the file exists within the current directory, or that a fully qualified filename is provided.

    Remarks

    This method can read files in either official "Part10" format, with the 128 byte header, or unofficial "Part5" format, without a header. Detection of the type is automatic.

    The file may have been written by the Write method or by other DICOM software.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also