Results for “load”
Small, practical examples. Search by task or narrow things down below.
Read a file size in bytes
Python: Use stat().st_size to read the logical byte length without loading the file.
Python✓ Tested
Read a text file
Load a small text file into a C# string.
C#✓ Tested
Read a whole text file
Load text as one string instead of one item per line.
Get-Content✓ Tested
Read one JSON document per line
Python: Parse nonempty JSON Lines records independently instead of loading a JSON array.
Python✓ Tested
Read the byte size of a regular file
C++: file_size reads filesystem metadata without loading file contents.
C++✓ Tested
Require a locally available image
Docker / Compose: The never pull policy fails for missing images instead of attempting a download.
Docker / Compose✓ Tested
Run cleanup after an AJAX failure
jQuery: always runs on success or failure and can clear loading state.
jQuery✓ Tested
Set and inspect a memory limit
Apply a per-container limit when creating a container.
memory✓ Tested