title: Ruby cross-platform way to write the EOF symbol
body: <p>Is there a platform-independent way of writing the <code>EOF</code> symbol to a string in Ruby. In *nix I believe the symbol is <code>^D</code>, but in Windows is <code>^Z</code>, that's why I ask.</p>