read until '#'