Ramesh Singh

Ramesh Singh

  • NA
  • 96
  • 1.3k

Determine File Path String

Apr 20 2023 2:44 PM

How can I protect a file path string that is determined at runtime and retrieved from a function only once, so that it cannot be modified later? I cannot use the const keyword since its value is determined at runtime, and the readonly keyword is not working. Is there any other way to achieve this protection without creating another class?
 


Answers (2)