Login
|
Signup
langref.org
-
python
and
clojure
add..
all
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Files
Writing
Append to a file
python
open('test.txt', 'at').write('Hello World!\n')
open('test.txt', 'at').write('Hello World!\n')
clojure
(with-out-append-writer "output.txt" (println "This is appended to the file"))
(use '[clojure.contrib.duck-streams :only (with-out-append-writer)])
(with-out-append-writer "output.txt" (println "This is appended to the file"))
Submit a new solution for
python
or
clojure
There are 15 other solutions in
additional
languages (
cpp
,
csharp
,
erlang
,
fantom
...)