How to write the username in a local txt file when login success and check on file for next login?
问题 I want to create a local txt file and store username after login success and for next login the app will check on this file if the username exists for bypass login. But it seems like no file created when I testing it bool bRet = ws.RequestMemberLogin(1, userName.Text, pass.Text, "", ""); string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); string filename = System.IO.Path.Combine(path, "user.txt"); FileInfo fi = new FileInfo(filename); bool exist = fi