fprintf(): Python Equivalent????
Prem Rachakonda
prem at engr.uky.edu
Mon Jun 18 21:34:56 EDT 2001
Hi,
That was real quick. Thanks a lot for the help, I really appreciate it.
Regards,
Prem.
____________________________________________________________
Prem Rachakonda
____________________________________________________________
Mailing Address: Work Address:
700 Woodland Ave., #E4 Teradyne Connection Systems,
Lexington, Kentucky-40508 44 Simon St., Mail Stop#006,
PH :859-323-2880(PP) Nashua, NewHampshire - 03060
eFax:253-323-9795 Work Phone No : 603-879-3442
Fax:603-879-3046 Res. Phone No.:603-247-2651
On Mon, 18 Jun 2001, Neil Schemenauer wrote:
> Prem Rachakonda wrote:
> > HI,
> > Does python have some function which does a formatted file writing
> > functionality similar to C's
> >
> > fprintf(fp,"%s %s",string1, string2);
>
> fp.write("%s %s" % (string1, string2))
>
> The '%' operator is more like sprintf though.
>
> Neil
>
More information about the Python-list
mailing list