write paths to single line