Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Read-entire-file/F-Sharp/read-entire-file.fs
Normal file
4
Task/Read-entire-file/F-Sharp/read-entire-file.fs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// read entire file into variable using default system encoding or with specified encoding
|
||||
open System.IO
|
||||
let data = File.ReadAllText(filename)
|
||||
let utf8 = File.ReadAllText(filename, System.Text.Encoding.UTF8)
|
||||
Loading…
Add table
Add a link
Reference in a new issue