Results for “open file”
Small, practical examples. Search by task or narrow things down below.
Write a text file
Open, write, and close a C file while checking every operation.
C✓ Tested
Write a UTF-8 file
Write a Java string to a file using an explicit text encoding.
Java✓ Tested
Write several messages through one file descriptor
Bash Scripts: Open a destination once and close the descriptor after writing.
Bash Scripts✓ Tested
Pipe input into a container process
Docker / Compose: The interactive flag keeps standard input open without allocating a terminal.
Docker / Compose✓ Tested
Read compressed text directly
Python: Open gzip data in text mode with an explicit encoding.
Python✓ Tested
Append a line
Append text to a Java file, creating it if necessary.
Java✓ Tested
Append a list item
Build a jQuery element with text and append it safely.
jQuery✓ Tested
Clear an element
Remove child content while keeping the jQuery-selected container.
jQuery✓ Tested
Create nested directories
Create missing parent directories with Java Files.createDirectories.
Java✓ Tested
Disable a button
Set the live disabled property with jQuery prop.
jQuery✓ Tested
Filter a selection
Reduce a jQuery selection to elements with a matching class.
jQuery✓ Tested
Find descendants
Select only matching descendants of a jQuery container.
jQuery✓ Tested