Text file question

Hello,

I am looking for some manual, guide of how to create, write, read, and search in a text file, and what are the commands.

Is there any good page for that?

Thanks!

Those points can't be AABB. They are individual points.

2 Answers

2

This and this might help you.

Text Assets aren't good for writing to because they are serialized with the rest of your assets and you can't write to them, only read from them.

You probably want the MSDN pages on the topic:

  • System.IO: The namespace containing all the below classes
  • File: contains methods for reading and writing. Probably the easiest way in combination with Filestream.
  • FileStream: allows for reading and writing
  • Path Useful for finding paths and joining paths
  • DirectoryInfo

The Application class also contains some useful properties for getting the app path.

Thanks :)