NEUTRINO_GUIs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1080528ec186e8e1152d2e2135e71591556f4ad4
parent 787ff60dfc302a726ee6d152e17767b12779f14c
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date:   Thu,  3 Feb 2022 02:04:42 +0900

Merge branch 'master' of https://github.com/minerva-jupiter/NEUTRINO_GUIs

Diffstat:
MForm1.cs | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Form1.cs b/Form1.cs @@ -59,18 +59,20 @@ namespace NEUTRINO_GUIs } //配列に代入 - string fileNameR = Path.GetFileNameWithoutExtension(whereRun); string[] lines = File.ReadAllLines(whereRun); //Runファイルを書き換える bool streamWriterOption = false; string scoreFileName = Path.GetFileNameWithoutExtension(openFileDialog.FileName); + //StreamWriterを起動 StreamWriter sw = new StreamWriter(whereRun, streamWriterOption); + + for (int a = 0; a < 5; a++) { sw.WriteLine(lines[a]); } //BASENAMEの行を書き換え - sw.WriteLine("set BASENAME = " + scoreFileName); + sw.WriteLine("set BASENAME=" + scoreFileName); //残りの行を書き換え for (int b = 6; b < lines.Length; b++) @@ -79,7 +81,7 @@ namespace NEUTRINO_GUIs } sw.Close(); - scorefile.Text = scoreFileName; + scorefile.Text = openFileDialog.FileName; MessageBox.Show("ファイル選択が完了しました。"); }