cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

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

Kittychen
12-Amethyst

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

1 REPLY 1

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

Top Tags