read nn formula from file