Wraps the functionalities to read and write from a CSV file.
More...
|
| CsvFile () |
| Public constructor. More...
|
|
void | Read (string fileName, bool hasHeaders) |
| Reads the contents of the CSV file into memory. More...
|
|
void | ReadFromString (string contents, bool hasHeaders) |
| Reads the contents of the CSV string into memory. More...
|
|
void | Write (string fileName) |
| Writes the contents of the CsvFile object into a file. More...
|
|
Wraps the functionalities to read and write from a CSV file.
Google.Api.Ads.Common.Util.CsvFile.CsvFile |
( |
| ) |
|
|
inline |
void Google.Api.Ads.Common.Util.CsvFile.Read |
( |
string |
fileName, |
|
|
bool |
hasHeaders |
|
) |
| |
|
inline |
Reads the contents of the CSV file into memory.
- Parameters
-
fileName | Full path to the csv file. |
hasHeaders | True, if the first line of the csv file is a header. |
void Google.Api.Ads.Common.Util.CsvFile.ReadFromString |
( |
string |
contents, |
|
|
bool |
hasHeaders |
|
) |
| |
|
inline |
Reads the contents of the CSV string into memory.
- Parameters
-
contents | Text to be parsed as csv file contents. |
hasHeaders | True, if the first line of the csv file contents is a header. |
void Google.Api.Ads.Common.Util.CsvFile.Write |
( |
string |
fileName | ) |
|
|
inline |
Writes the contents of the CsvFile object into a file.
- Parameters
-
fileName | The full path of the file to which the contents are to be written. |
The file will have headers only if Headers are set for this object.
List<string> Google.Api.Ads.Common.Util.CsvFile.Headers |
|
get |
List of CSV file headers.
List<string[]> Google.Api.Ads.Common.Util.CsvFile.Records |
|
get |
List of records in the CSV file.
The documentation for this class was generated from the following file: