Save a copy of a sketch as .txt automatically? (Trying to get Arduino on iOS)

Before I say any more, I'll tell you that my end goal here is to work on Arduino sketches (preferably offline) on my iPad. My sketch folder is in my Google Drive which is synced to my PC, so my thinking is that if there's some way I can automatically save a .txt version of each .ino file when they are updated, I can open this with Drive on my iPad (which I can do offline) and edit it there and then have it re-update the .ino file based on the changes.

OR if anyone has a way to at least somewhat directly edit the actual sketch on iOS that'd be even better. Any suggestions? I don't have a laptop and want to be able to work on stuff when I'm out and about!

I'd also like that! I know you can do it on an Android if you have google play.

Surely it is trivially easy to copy a .ino file to a .txt file. Or even to rename the file?

A .ino file is a text file.

...R

@Vulcan666 yeah, I much prefer Android and Microsoft products over Apple because of the capabilities... But for the time being, @Robin2 If all else fails I could go the messy route and have a program actually open up the Arduino IDE and send copy/paste keystrokes into a text file... But I'd really rather not be that tacky if it can be helped :stuck_out_tongue: I did find one article about how to retrieve hex data from a .ide file so I'll look into that. Also I already tried simply changing the extension and that didn't work, good thought though.

Just changing the extension to .txt works for me. The files can then be opened with TextEdit or Pages, also on my iPhone using iCloud. Automatically renaming the files and uploading them to the cloud could be done with AppleScript. Did not try yet.
There are many source code editors for iOS. They may be better suited than a word processor

@olf2012 hmm I may look into that, however...

I'm currently writing this program in python, and I found that its open(file).read() function actually returns the text inside a .ino file. My current plan therefore is to load the data from my sketchbook and the matching text files into lists, wait 30 sec, load the data into different lists, compare them, and if there are differences update them accordingly, then loop. I'd have this program running in the background whenever I'm logged on (which is basically always unless there's a power outage or something). Sound good?