c44722d1 4f11 6909 50ac 4028e3908f4c - akesseler/Plexdata.CsvParser GitHub Wiki

CsvWriter.Write Method (CsvContainer, String)

This method tries to write given container into given file.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public static void Write(
	CsvContainer container,
	string filename
)

Parameters

 

container
Type: Plexdata.CsvParser.Processors.CsvContainer
The container to be written to the CSV file.
filename
Type: System.String
The fully qualified path of the output file.

Exceptions

 

Exception Condition
ArgumentException This exception is thrown in case of given filename is invalid.
InvalidOperationException This exception is thrown in case of given file could not be deleted. Another reason could be the case when property parsing fails.
ArgumentNullException This exception is thrown if given container is .

Remarks

This method performes writing of data with default settings. Using default settings means that a possible existing file is overwritten. or from property names.

See Also

Reference

CsvWriter Class
Write Overload
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️