Login
|
Signup
langref.org
-
fsharp
and
clojure
add..
all
cpp
csharp
erlang
fantom
go
groovy
haskell
java
ocaml
perl
php
python
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
fsharp
let stream = new StreamWriter("test.txt", true)
stream.WriteLine("This line appended to file!")
#light
open System
open System.IO
let stream = new StreamWriter("test.txt", true)
stream.WriteLine("This line appended to file!")
stream.Close()
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
fsharp
or
clojure
There are 15 other solutions in
additional
languages (
cpp
,
csharp
,
erlang
,
fantom
...)