| Using VISA.NET > Formatted I/O > Using Printf > Printf Code Snippets |
This section provides a wide variety of code snippets showing how to use Printf with many of the possible combinations of format specifier types and modifiers, so you can see how to use format specifiers to get the exact formatting needed for a variety of scenarios.
In the Printf snippets, the format specifiers are all delimited with vertical bars, so that spaces are easily seen in the formatted result.
When these snippets use the octal escape sequence (\###) to specify a character, the string is prefixed with an @ character. This tells .NET to treat the escape sequence as literal characters rather than treating it as a .NET String constant escape sequence. In this case, we want Printf to process the escape sequence, rather than the .NET runtime.
The comment in each snippet shows how the snippet's format specifier formats the corresponding argument(s).