Re: fputs



On Tue, 05 Jun 2012 14:54:54 +0100, hassan <halnator@xxxxxxxxxxxxxxxxx> wrote:

what is the equivalent to the php fputs in python

The write() method of the file object. Though if you're
asking the question like that, you need to read this:

http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files

....and stop trying to think in terms of PHP. While you
can write PHP in any language (I know people who still
write FORTRAN, whatever language they might be using),
you'll find that getting into the right mindset for
whatever language you are using works a lot better.

--
Rhodri James *-* Wildebeest Herder to the Masses
.



Relevant Pages

  • Re: Breaking backwards compatibility - good or bad?
    ... coming and are needed to anything really big and useful in PHP. ... command or statement in the language that is going to be made invalid ... The PHP team tries very hard not to break CORRECT scripts. ... "Introducing case-sensitivity for variables and functions names has ...
    (comp.lang.php)
  • Re: Case sensitivity in programming languages.
    ... the language. ... And these conventions take advantage of case sensitivity. ... In PHP it can be any of those things. ... group of programmers who want t force their stupid ideas onto others. ...
    (comp.lang.php)
  • Re: A Lot of Questions from a Noob
    ... OOP is a language paradigm that is not specific to ... I Google'd for an introduction to object-oriented programming, ... Watch out for the die-hard Perl fanbois: ... PHP 5 OOP has come a long way from PHP 4. ...
    (comp.lang.php)
  • Re: Wordpress Port
    ... I think Ruby is also generally useful. ... easier to work with than Perl. ... PHP was obviously designed ... primarily as a procedural language, so it's sort of appropriate for ...
    (comp.lang.ruby)
  • Re: Case sensitivity in programming languages.
    ... Is any language issued with a set of function names in different ... You get a warning if you reference an undeclared variable in PHP if your ... In something like PHP we could generate a convention ... The ability to have 3 different functions called readfile(), ...
    (comp.lang.php)