Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set id

 
Lucas McDaniels
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I go about setting an Id from a customers list (text file)? so that it can be read by another method?

Thanks for the help,
Sloshy
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

It sounds like the basic approach will be:
  • Read the text file (get the contents into your Java program as a String so you can work with it).
  • Find the value you're looking for in the String (parse it into separate pieces and identify what you need).
  • Assign the desired value to some variable so it can be passed/accessed.


  • Does that make sense? If so, which part are you having trouble with? Have you tried reading the file? Do you have any code you've tried so far?
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic