-1
버튼을 누를 때마다 새 CSV 파일을 만들고 날짜 및 시간 스탬프 이름으로 저장하려고합니다.버튼을 눌러 새 CSV 파일을 만듭니다.
지금까지 내 코드입니다하지만 난 단지 추가하거나 덮어 쓸 수 있습니다, 파일이 한 번만 작성 :(
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim csvFile As String = "C:\" & FindDate("", 2) & Time.Replace(":", "") &".csv"
Dim outFile As System.IO.StreamWriter = New StreamWriter(csvFile, False)
outFile.WriteLine("hello")
outFile.Close()
End Sub