Skip to content

ecbb2f9d 8618 87e9 1bf5 458cbd29f079

Axel Kesseler edited this page Aug 16, 2024 · 5 revisions

CsvWriter.Write Method (IEnumerable(IEnumerable(Object)), String, CsvSettings)

This method tries to write given values 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(
	IEnumerable<IEnumerable<Object>> content,
	string filename,
	CsvSettings settings
)

Parameters

 

content
Type: System.Collections.Generic.IEnumerable(IEnumerable(Object))
The content array to be written to the CSV file.
filename
Type: System.String
The fully qualified path of the output file.
settings
Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to generate the output of the CSV 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.

Remarks

This method performes writing of data using given settings. But keep in mind, a possible existing file is overwritten.

See Also

Reference

CsvWriter Class
Write Overload
Plexdata.CsvParser.Processors Namespace

Clone this wiki locally