Personally, I always forget this stuff. So I figured this is a useful thing to have as a reference.
- Read an ascii file into a string
- Write an ascii file from a string
- Read a binary file into something appropriate. If possible, store in a string, too.
- Write a binary file from something appropriate. If possible, write from a string, too.
Current Answers (sorted alphabetically):
- Ada
- Bash
- C
- C++
- C#/.Net
- Delphi
- Groovy
- Java
- Lua
- PHP
- Perl
- Python
- R6RS Scheme
- Rebol
- Ruby
- VB
Missing Answers:
- Common Lisp