readDot function

Read dot file or string