Open CSV Files
Contents
[
Hide
]
Open CSV Files
Comma Separated Values (CSV) files contain records whose values are delimited or separated by commas. You may use Microsoft Excel to save you spreadsheet in CSV format.
To open CSV files, use the LoadOptions class, and select the CSV value, predefined in the FileFormatType enumeration.
The following code snippet demonstrates opening CSV file with Aspose.Cells for Python via Java API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source_directory = "Examples/SampleFiles/SourceDirectory/" | |
load_options = LoadOptions(FileFormatType.CSV) | |
workbook = Workbook(source_directory + "Book_CSV.csv", load_options) |