Login
|
Signup
langref.org
-
python
and
csharp
add..
all
clojure
cpp
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
Write a string to a file
python
open('test.txt', 'wt').write('Hello World!')
open('test.txt', 'wt').write('Hello World!')
csharp
System.IO.File.WriteAllText("filename.txt", "Some text to write to the file");
System.IO.File.WriteAllText("filename.txt", "Some text to write to the file");
Submit a new solution for
python
or
csharp
There are 17 other solutions in
additional
languages (
clojure
,
cpp
,
erlang
,
fantom
...)