Is it possible to do disk file I/O in OptoScript?


#1

We wish to write to and read from a simple disk text file in OptoScript (or elsewhere in a strategy) running on an R2. Writing has to occur in real time or very nearly so, as we’re logging asynchronous data. It’s a long-term fixed file, so FTPing a temp file won’t do it.

Is this doable?


#2

Hello ep5.tv,

Welcome to the OptoForums! Lots of options for reading/writing to a text file. Check out [B]this thread[/B] and also this [URL=“http://www.opto22.com/community/showthread.php?t=673”][U][B]comm handles 101 post[/B][/U].

However, I’m not sure I understand your concern about “FTPing a temp file” – could you tell us a little more about what you’re trying to do?

I’m guessing from what you’ve mentioned so far that writing to the sd card in your R2 would be your best bet ([U][B]now up to 32G w/R9.4a firmware[/B][/U]), but that’s based on some assumptions. Can you tell us more?

Thanks,
-OptoMary