# File To Datatable

Reads a CSV file and converts it to a `DataTable`. Supports advanced type conversion.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Group** | **Description** |
|-----------|------|-------|-------------|
| `FilePath` | `String` | ✅ Yes | CSV file path |
| `Data`    | `Byte[]` | ✅ Yes | Binary content of the CSV (read from memory) |
| `Separator` | `String` | ✅ Yes | CSV separator character |
| `HeaderLine` | `Int32` | ❌ No  | Header line number |
| `DataLineStart` | `Int32` | ❌ No  | First data line |
| `DataLineEnd` | `Int32` | ❌ No  | Last data line |
| `Encoding` | `String` | ❌ No  | Text encoding (UTF-8, ASCII, etc.) |
| `DecimalSeparator` | `String` | ❌ No  | Decimal separator (`.` or `,`) |
| `DecimalColumns` | `String` | ❌ No  | Columns to parse as Decimal |
| `IntegerColumns` | `String` | ❌ No  | Columns to parse as Integer |
| `DateFormat` | `String` | ❌ No  | Date format string (`dd/MM/yyyy`) |
| `DateColumns` | `String` | ❌ No  | Columns to parse as Date |
| `DateTimeFormat` | `String` | ❌ No  | DateTime format string |
| `DateTimeColumns` | `String` | ❌ No  | Columns to parse as DateTime |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsCsvFileToDataTableSuccessful` | `Boolean` | Whether the operation succeeded |
| `CsvFileToDataTableMessage` | `String` | Status/error message |
| `CsvFileToDataTableResult` | `DataTable` | DataTable with type conversion applied |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |