From 8ec820a7f7402d1fee646443e056d1a12644dc60 Mon Sep 17 00:00:00 2001 From: mschill Date: Thu, 20 Feb 2025 15:54:29 -0500 Subject: [PATCH] C2025-019 RO Editor - Update the Orphaned RO Record text file to save in the current RO folder instead of the users appdata folder. Found while using the WEP ROMOD database and the ROEPU folder. Note for Word doc: Update D.2.10 in the PROMS Manual for this update --- PROMS/ReferencedObjects/Exe/RefObj/ROEditor/RO_FST.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/RO_FST.cs b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/RO_FST.cs index 2a263265..0a2451f9 100644 --- a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/RO_FST.cs +++ b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/RO_FST.cs @@ -264,9 +264,11 @@ namespace ROEditor File.Delete(FstNew); // remove ROFST.NEW if (OrphanedRecords.Length > 0) { - StreamWriter sw = new StreamWriter(VlnSettings.TemporaryFolder + @"\Orphaned RO Records.txt"); - sw.Write(OrphanedRecords.ToString()); - sw.Close(); + using (StreamWriter sw = new StreamWriter(Path.Combine(FstDir, @"Orphaned RO Records.txt"), false)) + { + sw.Write(OrphanedRecords.ToString()); + sw.Close(); + } MessageBox.Show("The file Orphaned RO Records.txt has been created", "Warning - Orphan RO Record"); }