Created
February 11, 2019 20:05
-
-
Save SGTMcClain/5ef93316126280231b08535027135e2d to your computer and use it in GitHub Desktop.
Unity Simple IO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
public class IOScript : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
StreamWriter writer = new StreamWriter("Files/MyFile.txt"); | |
writer.WriteLine("im a new text file."); | |
writer.Flush(); | |
} | |
// Update is called once per frame | |
void Update () { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment