おのれ鍋奉行が!

getProfileString

最終更新:

lmes2

- view
メンバー限定 登録/ログイン

getProfileString


概要

iniファイルから文字列を取得する。

引数

  • iniファイルのパス
  • セクション名
  • エントリー名

戻値

  • 文字列

前提条件


手順

default.aspx と同じディレクトリに「setting.ini」というファイルを作成する。
[section]
test=てすと
 

default.aspx.vb を以下のように変更。

Partial Class _Default
    Inherits class_common
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        Response.Write(GetProfileString(Server.MapPath("setting.ini"), "section", "test"))
 
    End Sub
 
End Class
 

not found (241.jpg)
記事メニュー
目安箱バナー