playMaker

Author Topic: Write to txt file.  (Read 1372 times)

Aaddiction

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Write to txt file.
« on: April 27, 2015, 02:43:38 PM »
Hello,

Is there a way to change the text in .txt file during runtime with pm?

Thanks.

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Write to txt file.
« Reply #1 on: April 28, 2015, 02:47:09 AM »
If you check Ecosystem there is a "Write to file" action that writes a string to a text file
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Aaddiction

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: Write to txt file.
« Reply #2 on: April 28, 2015, 09:33:35 AM »
If you check Ecosystem there is a "Write to file" action that writes a string to a text file

Great, this seem to work with path set to C:\asd.txt.
Can I please ask what file path to put for use on mobile device? Only the name: asd.txt?

Thank you.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Write to txt file.
« Reply #3 on: April 29, 2015, 10:24:21 AM »
hi,

Maybe, depending on what you need to achieve, playerprefQ (search in forum for it) could be a solution. It saves data like playerpref (key + data) into .txt file. You can save strings into the file.. so edit string during runtime then save it to file with key. It also saves string arrays..