Saving Text
-
@Jay I am experiencing the same issue. Unable to load the stored Text.
-
Use thw
writeString()
function. https://docs.hise.audio/scripting/scripting-api/file/index.html#writestringAnd use
loadAsString()
to reload it from a text file. -
@d-healey I will make a Snippet shortly.
-
@d-healey Thank you.. Let me try.
-
@Jay @d-healey help me please.
HiseSnippet 1157.3ocsV17aaaCE.mxIJK1atnEa2KQNL3.j4Xm1tMfsg3ZG6MilO7pyR2gMTPK8rEQjIEjnhqQQwtr+v1eQC63.1AuGojhjSbBZ8vRtX99f7Ge58AGDJcfnHYHwp74yC.h0mXObtP40wiwEj9GYDDOZJWcN7FEo87.VTD3Rrr1360VXUdSh4u+5v1LelvAxEQHWH4Nvwbz6boCZ8BtueOlKbNeZAqeZq9NRQGouLFoYC6Fj.lykrIvoLsYkrIVa00kqjgCULEDg1zV5NenmblHw9K3Q7Q9fdQSxPbiRDS53w8cGjcSiHDqMGjeu2H4d+Y1mvc4WKO+9+PiBZtGEiAVkVFoMWBol2ER8j9t5M3Nvyp.dalf2irG5DxCT4Zzr8w18EJHbLCC6EwJwVRoOcC6NRzBgp9T1kPuPbw0dT6YMZrG8fFM18apVAC8QJ5UrPZeQPrh9czLGm.pNxoARAtn1NFs6rrGmEqtOWRTeCeRxotSeRTa7Q+OW3yE.cbrvQwkBpTjXf14PoeMmLO2C2b+XX2pUda0Jk6w8g5yB4JXnJjKlTaGbGo6uO8GjyntRZepQI0Eb7Yg.MHTF.gzHSz6P8A+NC.2Oi0ifLP5v78GgYs0tAfI2C7fOYNsuKvn7H5UP3bZaVD2g1U+aEVMPm4ABJiFGgXjvlGOZeObk.qBnXDaFV7PGAzHcRFFHxh9GyFA900GxqP+Pbo55lbyYWAtTtdyOhGBNXN675z946muDqHcoZ5ovx7D3GOA8TaQj4DLwOkLkvYbkG8TXFsW+i6RilGofoGV7a0oREbln1tUdakxUdWkaoZ73UpKM14CgqTst6Q384XMQ7zQPXVJQlgXI0x0ra89Uy5jjDTvPonufqNK.RWmWU2bEU0jzrH7W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WiXd0ZDyqWiX9w0Hle5AiAm77lIVcV0wAPwvCKmd64cX4noxcgj+Aj+ScJN
-
@d-healey said in Saving Text:
Awesome Sir. :) -
@d-healey said in Saving Text:
Thank you Sir.. your Comments are fantastic. Easy to understand the code... I am trying to make it. -
@DabDab Put the read code in on init.
-
@d-healey Excellent.. Through out the day I learned a lot. Searched many things on this forum. Thank you. :)
Writing this would have not been possible without your guidance. isFile OMG.