Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System.IO;
  5.  
  6. public class ApagarArquivo : MonoBehaviour {
  7. public string _local;
  8. void Start () {
  9. _local = Application.dataPath;
  10. print (_local);
  11. if (File.Exists (_local + "/arquivo(c#).txt")) {
  12. File.Delete(_local + "/arquivo(c#).txt");
  13. } else {
  14. print("Esse arquivo nao existe.");
  15. }
  16. }
  17.  
  18. void Update () {}
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement