Home > Net >  Visual Studio 2015 win 10 system access code paths they advice please
Visual Studio 2015 win 10 system access code paths they advice please

Time:09-27

Win 10 system installed vs2015 desktop has built a 1 TXT file how access code path is not the master advice please

CodePudding user response:

If 1 TXT fewer points, should be 1. TXT

CodePudding user response:

Path error, can not find a File, you can use the File first. The Exists (path) to determine whether a File Exists, is read ah, you this path 1 TXT less a. Instead of 1. TXT

CodePudding user response:

refer to the second floor MYsce response:
path error, can not find a File, you can use the File first. The Exists (path) to determine whether a File Exists, is read ah, you this path 1 TXT less a. Instead of 1. TXT

To judge the false this path is my copy from the text attribute position out of ah don't know that was wrong
String path=@ "C: \ Users \ \ Administrator \ Desktop \ 1. TXT".//the text path assigned to path
Bool qq=File. The Exists (path)

CodePudding user response:

reference weixin_44615268 reply: 3/f
Quote: refer to the second floor MYsce response:

Path error, can not find a File, you can use the File first. The Exists (path) to determine whether a File Exists, is read ah, you this path 1 TXT less a. Instead of 1. TXT

To judge the false this path is my copy from the text attribute position out of ah don't know that was wrong
String path=@ "C: \ Users \ \ Administrator \ Desktop \ 1. TXT".//the text path assigned to path
Bool qq=File. The Exists (path)

To false is the path to the file does not exist, you see this path 1. TXT file exists

CodePudding user response:

String path=@ "C: \ \ Users \ \ Administrator \ \ Desktop \ \ 1. TXT". Try adding a ""

CodePudding user response:

C disk access is not the big probability is permission problems with administrator privileges to open the v and then run the code
  •  Tags:  
  • C#
  • Related