Results for “read text”
Small, practical examples. Search by task or narrow things down below.
Run your first program
C++: Start with a complete program that prints one line. Follow the run instructions below.
C++✓ Tested
Select specific columns
Read only the fields a result needs.
SELECT✓ Tested
Serialize a hashtable as JSON
Produce compact JSON for a small data object.
JSON✓ Tested
Serialize an object
Turn a JavaScript object into JSON text.
JavaScript✓ Tested
Serialize an object to JSON
Serialize a small anonymous C# object with System.Text.Json.
C#✓ Tested
Set a form field value
Populate a labeled input with jQuery val.
jQuery✓ Tested
Set a JSON property
Create an updated JSON document from existing text.
json_set✓ Tested
Set an element attribute
Update an HTML link using jQuery attr.
jQuery✓ Tested
Set owner-only file permissions
Linux Commands: Use chmod 600 to allow only the owner to read and write a file.
Linux Commands✓ Tested
Share ownership with a counted smart pointer
C++: Copies of shared_ptr keep the owned value alive until the last owner is released.
C++✓ Tested
Show the Linux distribution version
Read the distribution-provided operating system name and version from os-release.
os✓ Tested
Sort and deduplicate lines
Sort lines alphabetically and remove duplicate lines in a predictable C locale.
sort✓ Tested