Example code not working (wire.write and wire.read)

As Johnwasser said. Which version of the IDE are you using?

Edit: ah, missed that you had 1.0. Have you managed to get an old version of the library from somewhere?