file write test

This commit is contained in:
2022-11-29 16:55:32 +01:00
parent 736d2d152e
commit 3dc784f6de
3 changed files with 42 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class WriteFile : MonoBehaviour
{
StreamWriter writer = new StreamWriter(@"..\..\..\..\..\backend\adat.txt", false);
string data = "thewarrior2";
writer.Write(data);
writer.Close();
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4102586368925fe449e8d028a1fee6c2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: