The scanning force microscope was used to scratch thin films and to write nanoscale pattern on surfaces as well as to perform nanoindentation for hardness measurements. Different thin film materials such as C60 films, diamond-like carbon, metals and semiconducting films have been investigated.