read file contents to a variable
From: paul (paul_at_not.net)
Date: 11/30/04
- Next message: Oli Filth: "Re: read file contents to a variable"
- Previous message: Neal: "Re: strict.dtd??"
- Next in thread: Oli Filth: "Re: read file contents to a variable"
- Reply: Oli Filth: "Re: read file contents to a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 15:38:50 -0800
Is there a reason the file() function makes an array? The readfile()
function is even more strange, it dumps the contents to the screen but
if you try to set it to a variable, it gives only the number of bytes
instead of the content. As best I can tell I'd need to use the file()
function then extract that back by adding each character onto the
another variable in a couple of loops which seems unnecessarilt complex
like I must be missing something.
- Next message: Oli Filth: "Re: read file contents to a variable"
- Previous message: Neal: "Re: strict.dtd??"
- Next in thread: Oli Filth: "Re: read file contents to a variable"
- Reply: Oli Filth: "Re: read file contents to a variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|