Announcement

Collapse
No announcement yet.

Reading/Writing text file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reading/Writing text file?

    Is there a way to write to and read from text files on the phone (Moto g4 play)? I'd like to record data from Autonomous that I can access during teleop.

  • #2
    Yes, you can do this using fairly standard Java file methods.

    One example is here: https://github.com/cheer4ftc/OpModeC...FtcConfig.java
    See lines 64-89 for an example of reading from a file.
    See lines 201-213 for an example of writing to a file.

    Comment

    Working...
    X