Your code is html.  fs.write is javascript that runs on the server.
What are you trying to do?

On Mon, Dec 3, 2012 at 10:06 AM, Network Individual
<[email protected]> wrote:
> I have a text file with three html elements.
>
> <article id="1">
> <p>lorem ipsum</p>
> </article>
>
> <article id="2">
> <p>ghhj</p>
> </article>
>
> <article id="3">
> <p>wywygy</p>
> </article>
>
> Can i use the function
>
> fs.write(fd, buffer, offset, length, position, [callback])
>
>
>
> to write before before article id=1 or after article id=3 or anywhere i want
> to?.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to