.. highlightlang:: us .. index:: fprintf .. _fprintf: fprintf ======= .. us.tag fprintf ENGLISH ffiles :ref:`fprintf` formats and prints a series of characters and values into a file. .. function:: rsNChars = fprintf(fh, ssFormat, arg1, ...) .. us.return **Return Value** *rsNChars* .. us.params **Parameters** .. uparam:: fh *fh* is a file handle created by calling the :ref:`fopen` function. .. uparam:: ssFormat *ssFormat* is a scalar string with embedded format specifications that determine the output format for the arguments. See *printf* for a complete description of format specification. .. seealso:: :ref:`overview-binary-and-text-files`, :ref:`fopen`, :ref:`printf`, :ref:`sprintf` :sub:`id-343535`