Login
|
Signup
langref.org
-
fsharp
,
fantom
, and
groovy
add..
all
clojure
cpp
csharp
erlang
go
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()
fantom
File(`out.txt`).out(true).writeChars("some text").flush
class SolutionXX
{
Void main()
{
File(`out.txt`).out(true).writeChars("some text").flush
}
}
groovy
file << 'some text'
file = new File('somefile.ext')
file << 'some text'
Submit a new solution for
fsharp
,
fantom
, or
groovy
There are 14 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)