Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading file

 
Pradyumna Sahoo
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


here 's a text file I want to read only the x and y coordinates using file input stream reader , please help me to develop the code. Thanks for your time and consideration.




 
Pradyumna Sahoo
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Here's my java code. Again Thanks for your time. Live Long and prosper.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should treat the file as what it is, which is XML - so use an XML parser to read it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic