File [vb.net] SaveText / 텍스트 문서(txt)로 저장하는 함수
페이지 정보

본문
|     Function SaveText(fPATH As String, TEXT As String, Optional ED As System.Text.Encoding = Nothing) As Boolean         On Error GoTo ErrPass         Dim File As System.IO.StreamWriter         If ED Is Nothing Then ED = System.Text.Encoding.Default         File = My.Computer.FileSystem.OpenTextFileWriter(fPATH, False, ED) '// False = 새로쓰기, True = 이어쓰기         File.WriteLine(TEXT)         File.Close()         SaveText = True ErrPass:     End Function | 
- 이전글[vb.net] Split 연속된 구분 기호를 하나로 처리 20.01.19
- 다음글[vb.net] ReadText / 외부 TXT 값 불러오기 20.01.17
댓글목록
등록된 댓글이 없습니다.





