thank you for your reply. 

At this point I am trying to validate my assumptions and my understanding 
of the big picture and data flow.

On Thursday, September 12, 2013 11:21:23 AM UTC-7, Mark Hahn wrote:
>
> change `res.end('Hello World\n'` to
>
>     fs.readFile( yourFilePath, 'utf8', function(err, data) { res.end(data); 
> } );
>
> You need to study up on node programming.  If you don't know how to do 
> this you are going to have a hard time doing anything else in node.
>
>
>
> On Thu, Sep 12, 2013 at 11:15 AM, Reza Razavipour 
> <[email protected]<javascript:>
> > wrote:
>
>> I want the browser to display the content of the HTML page and not the 
>> name.
>>
>>
>>
>> On Thursday, September 12, 2013 11:03:40 AM UTC-7, Mark Hahn wrote:
>>>
>>> correction: Change it to  `res.end(MyFileName + '\n');` where MyFileName 
>>> contains the name of the file you want.
>>>
>>> BTW, I have no idea why you want to return a file name.  You will just 
>>> see that name on your browser page.
>>>
>>>
>>> On Thu, Sep 12, 2013 at 11:01 AM, Mark Hahn <[email protected]> wrote:
>>>
>>>> Just use the http server example on the node front page and change 
>>>> `res.end('Hello World\n'` to `res.end('MyFileName\n');`
>>>>
>>>>
>>>  -- 
>> -- 
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to