Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rsromeo
Channel Surfer

WRITING TO REMOTE FILE

Hi -

Anyone know how I could use roUrlTransfer to write to a remote text file. I am just trying to write a string to a file.

mystring = "This is what I want to write to the file."
xfer = CreateObject("roUrlTransfer")
xfer.SetUrl("http://wherever.com/test.txt")
xfer.GetToFile("test.txt")

I got as far as this but not sure how the actual writing occurs? How do I tell it to write my string to that file?
0 Kudos
2 REPLIES 2
jbrave
Channel Surfer

Re: WRITING TO REMOTE FILE

There is a cUrl interface in BrightScript, see page 88 of the BrightScript Component Reference, I believe you should be able to accomplish what you want with this. Of course, you need write access and permissions on the webserver configured to allow this.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
renojim
Community Streaming Expert

Re: WRITING TO REMOTE FILE

You want PostFromString or PostFromFile.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.