Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class getpass : MonoBehaviour {
  2.  
  3. public Text mes;
  4. public InputField field;
  5. public string mypass;
  6.  
  7. void Start()
  8. {
  9.  
  10. mes.text = "";
  11. mypass = "";
  12.  
  13. }
  14.  
  15. public void CodeOut()
  16. {
  17.  
  18. mypass = field.text;
  19. field.text = "";
  20.  
  21. StreamWriter sw = new StreamWriter(Application.dataPath + "/" + "testfile2.txt",false);
  22.  
  23. sw.WriteLine(mypass);
  24. sw.Flush();
  25. sw.Close();
  26.  
  27. mes.text = "※登録が完了しました";
  28.  
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement