https://github.com/xjine/unity_textfilereadwriter
TextFileReadWriter provides simple functions to read/write text from/to file.
https://github.com/xjine/unity_textfilereadwriter
assets unity
Last synced: 10 months ago
JSON representation
TextFileReadWriter provides simple functions to read/write text from/to file.
- Host: GitHub
- URL: https://github.com/xjine/unity_textfilereadwriter
- Owner: XJINE
- License: bsd-3-clause
- Created: 2019-12-01T11:32:55.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-02T05:36:59.000Z (almost 3 years ago)
- Last Synced: 2024-11-10T17:46:32.056Z (over 1 year ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 68.4 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_TextFileReadWriter
``TextFileReadWriter`` provides simple functions to read/write text from/to file.
## Importing
You can use Package Manager or import it directly.
```
https://github.com/XJINE/Unity_TextFileReadWriter.git?path=Assets/Packages/TextFileReadWriter
```
## How to Use
Following functions are included.
```csharp
(string text, bool success) ReadFromAssets(string file)
(string text, bool success) ReadFromAssets(string dir, string file)
(string text, bool success) ReadFromStreamingAssets(string file)
(string text, bool success) ReadFromStreamingAssets(string dir, string file)
(string text, bool success) Read(string dir, string file)
(string text, bool success) Read(string path)
(string text, bool success) WriteToAssets(string file, string text)
(string text, bool success) WriteToAssets(string dir, string file, string text)
(string text, bool success) WriteToStreamingAssets(string file, string text)
(string text, bool success) WriteToStreamingAssets(string dir, string file, string text)
(string text, bool success) Write(string dir, string file, string text)
(string text, bool success) Write(string path, string text)
```