Comment lire et écrire un fichier Excel
Comment lire et écrire un fichier Excel
Comment lire et écrire des fichiers Excel dans différents langages de programmation ?
Re: Comment lire et écrire un fichier Excel
Voici les bibliothèques recommandées par langage :
**Java :**
- Apache POI (la plus populaire)
```java
Workbook wb = WorkbookFactory.create(new File("fichier.xlsx"));
Sheet sheet = wb.getSheetAt(0);
Row row = sheet.getRow(0);
Cell cell = row.getCell(0);
```
**Python :**
- openpyxl, pandas, xlrd
**C# :**
- EPPlus, NPOI, ClosedXML
**JavaScript/Node.js :**
- xlsx (SheetJS), exceljs
**Java :**
- Apache POI (la plus populaire)
```java
Workbook wb = WorkbookFactory.create(new File("fichier.xlsx"));
Sheet sheet = wb.getSheetAt(0);
Row row = sheet.getRow(0);
Cell cell = row.getCell(0);
```
**Python :**
- openpyxl, pandas, xlrd
**C# :**
- EPPlus, NPOI, ClosedXML
**JavaScript/Node.js :**
- xlsx (SheetJS), exceljs