Skip to main content
13-Aquamarine
March 24, 2020
Solved

How to read/write text file in Web.link or CREOSON?

  • March 24, 2020
  • 1 reply
  • 1652 views

I tried but can't find it. Thanks in advance. 

Best answer by DavidBigelow

When trying to save a file from the Browser - you basically have to convert the content into a download stream/file.

 

https://stackoverflow.com/questions/13405129/javascript-create-and-save-file/13405322#13405322

 

 

This is a generic thing... and there are MANY approaches to do this in vanilla Javascript -- or by using libraries you can src to.  So WebLink and/or CREOSON should not be a limitation - browser security may be a problem if some of the sample code does not work.

 

Hope that helps.

 

Dave

1 reply

17-Peridot
March 25, 2020

When trying to save a file from the Browser - you basically have to convert the content into a download stream/file.

 

https://stackoverflow.com/questions/13405129/javascript-create-and-save-file/13405322#13405322

 

 

This is a generic thing... and there are MANY approaches to do this in vanilla Javascript -- or by using libraries you can src to.  So WebLink and/or CREOSON should not be a limitation - browser security may be a problem if some of the sample code does not work.

 

Hope that helps.

 

Dave