私はC#.NETを初めて使用します。
ローカルフォルダから*.resxファイルにアクセスしてから、各*.resxファイルからデータを取得する必要があります。そのためのWindowsアプリケーションを作成しています。
そのため、最初にそのフォルダーへのパスを指定すると、そこにファイルが見つかりましたが、今度は、それらのファイルを読み取って、RAM上の一時データベースにデータを取得するにはどうすればよいですか。
private void buttonBrowseSource1_Click(object sender、EventArgs e)
{{
FolderBrowserDialog selectPathDialog = new FolderBrowserDialog();
if (selectPathDialog.ShowDialog() == DialogResult.OK)
{
DirectoryInfo di = new DirectoryInfo(selectPathDialog.SelectedPath);
FileInfo[] RESXFiles = di.GetFiles("*.resx");
if (RESXFiles.Length == 0)
{
UpdateStatus("No RESX files found in this directory. Please check the folder/path again.");
}
else
{
UpdateStatus("Total " + RESXFiles.Length + " RESX files found in this directory.);
textBoxSource1.Text = selectPathDialog.SelectedPath;
}
}
else
{
UpdateStatus("Missing directory! Please try again.");
}
}
どうもありがとう。