fprintf

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Print formatted output to a file

Arguments and Return Values

Arguments: A filename and string

Return Value: None.

Usage

Syntax: fprintf(filename, text)

The fprintf() function is a direct interface to the the C library function of the same name. It works the same as sprintf but appends its output to specified filename.

Examples

dv> fprintf("fpf.txt","The value of 3+4 is %d\n",3+4)

dv> k = read_lines("fpf.txt")
Text Buffer with 1 lines of text
    1: The value of 3+4 is 7

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools