1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VB.Netの実装あれこれ

Last updated at Posted at 2023-09-04

Usingを使ったファイル書込み

Dim utf8 As New UTF8Encoding(False) 'BOM無し
Using sw As New StreamWriter("ファイルパス", True, utf8)
  sw.WriteLine(errorInfo)
End Using

ファイル更新日時が新しいものから順番に並べ直す

Dim fileList As New List(Of FileInfo)

'ファイル取得処理
'・・・

'ファイル更新日時が新しいものから順番に並べ直す
Dim sorted() As FileInfo = fileList.OrderByDescending(Function(n) n.LastWriteTime).ToArray()

exeファイルと同じフォルダにあるiniファイルを指定する

AppDomain.CurrentDomain.BaseDirectory & "Setting.ini"

Datatableから特定の列の値を取得して、リスト化する

Dim valueList As List(Of String) = DT.Select(caseWhere).AsEnumerable().Select(Function(row) row("列名").ToString).ToList()
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?