I'm curious as to what the IDE source code looks like

I was thinking it would look like the arduino stuff and then could copy the code that knows how to read, save, delete files on the Mac that runs the IDE. Back door way of learning stuff I guess. But if the whole thing is utterly something else, probably not worth it! Oh well. just a thought.