Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I read a file in Cbot?
#2
In original Colobot it was "files/" directory inside the game installation directory. In Gold, for proper multiplatform support, it's stored along with the savegame files somewhere in user's home directory, meaning C:\Users\<username>\colobot\files on Windows or ~/.local/share/colobot/files/ on Linux. I guess we never updated SatCom to mention that.

To access a specific line, you have to loop over all the ignored ones that are before it, there is no other way as far as I'm aware. It's been a while since I used files in CBOT though.


Messages In This Thread
How do I read a file in Cbot? - by Mrocza - 03-04-2017, 05:08 PM
RE: How do I read a file in Cbot? - by krzys_h - 03-04-2017, 07:14 PM
RE: How do I read a file in Cbot? - by Mrocza - 03-05-2017, 08:13 AM
RE: How do I read a file in Cbot? - by krzys_h - 03-05-2017, 08:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)