1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| '#####################################################
'############### Extraction des données ##############
'#####################################################
Try
Dim csvFile As String = "C:\Nouveau dossier\Test_10_Couches.csv" 'Creation du fichier
Dim outFile As IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(csvFile, False)
For j As Integer = 0 To Indice - 1
Dim Ligne As String = ""
For i As Integer = 0 To nbrCouches - 1
Ligne &= Temperature_CP(j, i) & ";"
Next
outFile.WriteLine(Ligne) 'Ajout d'une ligne
Next
outFile.Close() 'fermeture du fichier
Catch ex As Exception ' en cas d'erreur
MsgBox(ex.ToString) ' On affiche le message d'erreur
End Try
'#####################################################
'##################################################### |
Partager