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

this is what it says at the bottom in arduino 1 (lastest version)

L10_4.cpp: In function 'void setTime()':
L10_4:71: error: 'class TwoWire' has no member named 'write'
L10_4:73: error: 'class TwoWire' has no member named 'write'
L10_4:74: error: 'class TwoWire' has no member named 'write'
L10_4:75: error: 'class TwoWire' has no member named 'write'
L10_4:76: error: 'class TwoWire' has no member named 'write'
L10_4:77: error: 'class TwoWire' has no member named 'write'
L10_4:78: error: 'class TwoWire' has no member named 'write'
L10_4:79: error: 'class TwoWire' has no member named 'write'
L10_4:81: error: 'class TwoWire' has no member named 'write'
L10_4.cpp: In function 'void readTime()':
L10_4:127: error: 'class TwoWire' has no member named 'write'
L10_4:132: error: 'class TwoWire' has no member named 'read'
L10_4:133: error: 'class TwoWire' has no member named 'read'
L10_4:134: error: 'class TwoWire' has no member named 'read'
L10_4:135: error: 'class TwoWire' has no member named 'read'
L10_4:136: error: 'class TwoWire' has no member named 'read'
L10_4:137: error: 'class TwoWire' has no member named 'read'
L10_4:138: error: 'class TwoWire' has no member named 'read'