Read file

Element that reads the content file.

Properties

- Path*: [String] Path to a file to be read (c:\folder\file.txt)

- Variable (text): [String] Variable that receives text data from a file

- Variable (array): [byte[]] Variable that accepts binary data in a file

- Variable (image): [System.Drawing.Bitmap] Variable that accepts image data from a file

- Encoding: [String] Encoding used in a file (utf-8) 'https://docs.microsoft.com/ru-ru/dotnet/api/system.text.encoding'

C#
string txt = System.IO.File.ReadAllText(@"C:\text.txt");
byte[] bytes = System.IO.File.ReadAllBytes(@"C:\bytes.txt");

Python
txt = System.IO.File.ReadAllText("C:\\text.txt")
bytes = System.IO.File.ReadAllBytes("C:\\bytes.txt")

JavaScript
var txt = _lib.System.IO.File.ReadAllText("C:\\text.txt");
var bytes = _lib.System.IO.File.ReadAllBytes("C:\\bytes.txt");

Last updated