Documentation‎ > ‎Scripts‎ > ‎Standard Assets‎ > ‎

ReadLog.cs

  • This script handles all reading of text files, mostly for replays. 
  • Most text files read here are .asc files, which have been converted to text from the .edf format by the Visual EDF2ASC application. 
  • This script is just the messenger - other scripts tell it when to read. 
  • It's written in C-sharp because that language allows "StreamWriters" to write to text files, and JavaScript does not. 
  • This script should be placed in the "Standard Assets" folder because Javascript functions can only reference C-Sharp functions if they're compiled first, and the Standard Assets folder is compiled before the rest of the project. 

- Created 5/12 by DJ.
- Updated 11/21/13 by DJ - Fixed EndOfStream check, added comments.
Comments