File I/O in many programming languages Derived from this SO post: http://stackoverflow.com/questions/3538156/file-i-o-in-every-programming-language
Each piece of code must accomplish the following:
- Create a new text file called "fileio.txt"
- Write the first line "hello" to the text file.
- Append the second line "world" to the text file.
- Read the second line "world" into an input string.
- Print the input string to the console.
For each example, it is assumed that the text file doesn't exist beforehand. There is also no need to reopen the text file after writing the first line.
So far the following languages are present: ActionScript 3.0 ANSI C BASIC Batch Brainfuck C++ Clojure COBOL Common Lisp C# D Delphi Erlang F# Go Groovy Haskell Java JavaScript Linux x86 Assembly Lolcode Lua Objective-C Perl PHP PowerShell Prolog Python R Ruby Scala Shell Visual Basic 6.0