Skip to content

Instantly share code, notes, and snippets.

@SGTMcClain
Created February 11, 2019 20:05
Show Gist options
  • Save SGTMcClain/5ef93316126280231b08535027135e2d to your computer and use it in GitHub Desktop.
Save SGTMcClain/5ef93316126280231b08535027135e2d to your computer and use it in GitHub Desktop.
Unity Simple IO
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