Reference for get_text
Read a text file. This is part of the reference section.
Arc
Buffer
Data
get_text
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Read a text file either from local file system or the network.
Snippet
Load the text file called example.txt.
records = sketch.get_data_layer().get_text('example.txt')
Parameters
- path: The location at which the file can be found.
Examples
Availability
Available for all platforms. On static and app renderers, will interpret path as a local file path using the operating system's conventions. For web, it will interpret path as a URL. Filenames like "example.txt" will assume the same directory. All platforms support remote files if prefixed by "http:// or https://".