write and read a text file in a format that Petra 2.x uses
More...
write and read a text file in a format that Petra 2.x uses
◆ CheckForKeyword()
bool Ict.Common.IO.TImportExportTextFile.CheckForKeyword |
( |
string |
AKeyword | ) |
|
|
inline |
this will check if the next item is the quoted keyword. if this is true, the parser will proceed to next item
◆ EndOfFile()
bool Ict.Common.IO.TImportExportTextFile.EndOfFile |
( |
| ) |
|
|
inline |
is there more data to read?
◆ FinishWriting()
string Ict.Common.IO.TImportExportTextFile.FinishWriting |
( |
| ) |
|
|
inline |
returns the string that has been assembled during all the previous write function calls
◆ InitReading()
void Ict.Common.IO.TImportExportTextFile.InitReading |
( |
string[] |
ATextFileContents | ) |
|
|
inline |
pass the lines that should be parsed
◆ ReadBoolean()
bool Ict.Common.IO.TImportExportTextFile.ReadBoolean |
( |
| ) |
|
|
inline |
◆ ReadDate()
DateTime Ict.Common.IO.TImportExportTextFile.ReadDate |
( |
| ) |
|
|
inline |
◆ ReadDecimal()
decimal Ict.Common.IO.TImportExportTextFile.ReadDecimal |
( |
| ) |
|
|
inline |
◆ ReadInt32()
Int32 Ict.Common.IO.TImportExportTextFile.ReadInt32 |
( |
| ) |
|
|
inline |
◆ ReadInt64()
Int64 Ict.Common.IO.TImportExportTextFile.ReadInt64 |
( |
| ) |
|
|
inline |
◆ ReadNullableDate()
DateTime? Ict.Common.IO.TImportExportTextFile.ReadNullableDate |
( |
| ) |
|
|
inline |
read a DateTime value that can be null
◆ ReadNullableInt32()
Int32? Ict.Common.IO.TImportExportTextFile.ReadNullableInt32 |
( |
| ) |
|
|
inline |
◆ ReadNullableInt64()
Int64? Ict.Common.IO.TImportExportTextFile.ReadNullableInt64 |
( |
| ) |
|
|
inline |
◆ ReadString()
string Ict.Common.IO.TImportExportTextFile.ReadString |
( |
| ) |
|
|
inline |
read a string. strip off the quotes.
- Returns
◆ StartWriting()
void Ict.Common.IO.TImportExportTextFile.StartWriting |
( |
| ) |
|
|
inline |
initialise the stringbuilder for writing a new file
◆ Write() [1/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
bool |
AValue | ) |
|
|
inline |
write a boolean value
- Parameters
-
◆ Write() [2/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
DateTime ? |
AValue | ) |
|
|
inline |
write a date. if null, write questionmark
- Parameters
-
◆ Write() [3/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
DateTime |
AValue | ) |
|
|
inline |
◆ Write() [4/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
Decimal |
AValue | ) |
|
|
inline |
write a decimal value
- Parameters
-
◆ Write() [5/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
Int64 |
AValue | ) |
|
|
inline |
write an Int64 value
- Parameters
-
◆ Write() [6/6]
void Ict.Common.IO.TImportExportTextFile.Write |
( |
string |
AValue | ) |
|
|
inline |
insert a string. will use quotes
- Parameters
-
◆ WriteLine()
void Ict.Common.IO.TImportExportTextFile.WriteLine |
( |
| ) |
|
|
inline |
◆ CurrentLine
string Ict.Common.IO.TImportExportTextFile.CurrentLine |
|
get |
◆ CurrentLineCounter
Int32 Ict.Common.IO.TImportExportTextFile.CurrentLineCounter |
|
get |
read the current line counter
◆ DATEFORMAT
string Ict.Common.IO.TImportExportTextFile.DATEFORMAT |
|
getset |
Access the current Date Format for import / export
The documentation for this class was generated from the following file: