The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I read a file in Cbot?
#1
Say I'd like to read a line from a file.
Code:
file.open(filename, mode);
s = file.readln();
What directory is checked for said file?
SatCom claims it's "files/" directory. Where is that exactly?
Can I access a specific line within that file?


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)