I'm new to Node.js. I have searched the forum but couldn't find a similar question. Here is the problem I encountered. The following code runs fine.

```
process.stdout.write("hello world!\n");

```

but the following code:

```
var myprint = process.stdout.write;
myprint("hello world");

```

will generate the following error:

```
TypeError: Cannot read property 'defaultEncoding' of undefined

```

Any suggestions? Thank you so much.