Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Aaddiction on April 27, 2015, 05:43:38 PM

Title: Write to txt file.
Post by: Aaddiction on April 27, 2015, 05:43:38 PM
Hello,

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

Thanks.
Title: Re: Write to txt file.
Post by: mdotstrange on April 28, 2015, 05:47:09 AM
If you check Ecosystem there is a "Write to file" action that writes a string to a text file
Title: Re: Write to txt file.
Post by: Aaddiction on April 28, 2015, 12:33:35 PM
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.
Title: Re: Write to txt file.
Post by: dudebxl on April 29, 2015, 01:24:21 PM
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..
Title: Re: Write to txt file.
Post by: stigma on August 05, 2023, 11:01:11 AM
Thanks, it works great. I did not know Ecosystem.
I would like to insert a line break otherwise the data is on a single line. How do we do?
Title: Re: Write to txt file.
Post by: djaydino on August 06, 2023, 01:46:42 PM
Hi.
You can use String Add New Line and Build string