Path problem in .NET! (记)

xiaoxiao2021-03-06  71

Today, I've been touched: When OpenFileDialog is elected, the program default path is changed to OpenFiledialog's file path, and the program is to read and write, the configured path (such as StreamReader File = New StreamReader ("Address.ini"), Then report an error not to change the file. It should be noted that the place where the file reads and writes files should pay attention to the full path of the file, (streamReader file = new streamreader), and FullPath should assign a value when Formloy is the program path Environment.currentDirectory. --- -----------------------------------------

转载请注明原文地址:https://www.9cbs.com/read-109620.html

New Post(0)