io-stream

Open an IO stream from a local file or url

I know there are libs in other languages that can take a string that contains either either a path to a local file or a url and open it as a readable IO stream. Is there an easy way to do this in ruby? ...

Java - open existing file or create one if doesn't exist using IO streams

I was following instructions from a Java website (http://java.sun.com/docs/books/tutorial/essential/io/file.html#createStream) on creating or writing a file using an IO stream. However, the code it provides seems to be broken in multiple places: import static java.nio.file.StandardOpenOption.*; Path logfile = ...; //Convert the string...