Guest User

Untitled

a guest
Jan 18th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. region=dev
  2. numlines=2
  3.  
  4. import com.typesafe.config._
  5. val propertyFile = args(2)
  6.  
  7. val myConfigFile = new File(propertyFile)
  8.  
  9. val fileConfig = ConfigFactory.parseFile(myConfigFile)
  10. val config = ConfigFactory.load(fileConfig)
  11.  
  12. val environment = config.getString("region")
  13. val numberOfLinesToBeRemoved = config.getInt("numlines")
Add Comment
Please, Sign In to add comment