Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

MultiRecordEngine.WriteFile Method (String, IEnumerable, Int32)

Write the specified number of records from the array to a file.

[Visual Basic]
Overloads Public Sub WriteFile( _
   ByVal fileName As String, _
   ByVal records As IEnumerable, _
   ByVal maxRecords As Integer _
)
[C#]
public void WriteFile(
   string fileName,
   IEnumerable records,
   int maxRecords
);

Parameters

fileName
The file path to be write.
records
The records to write (Can be an array, ArrayList, etc)
maxRecords
The max number of array elements to write.

Return Value

True if the operation is successful. False otherwise.

Remarks

This method open, write and close the file (don't open or close the file before or after to call this method)

This method overrides existing files.

Example

This example show the basic use of the library with minimun code:


        

See Also

MultiRecordEngine Class | FileHelpers Namespace | MultiRecordEngine.WriteFile Overload List


Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox