• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading a text File from a TextArea  RSS feed

 
P Veer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Guys!!!
Iam trying to read a file like this from a text area:
10
5
7
5
P1 7 5 3
P2 3 2 2
P3 9 0 2
P4 2 2 2
P5 4 3 3
10
P5 2 1 0
P3 1 0 1
P1 2 0 0
P4 2 1 1
P2 1 0 2
P5 0 0 3
P2 0 2 0
P5 1 0 0
P3 2 0 0
P4 0 1 0
How do I do this??I tried using Labels and textfileds for each different line but couldn't do it.I have no idea how do read this from a text area and seprate them into Different pieces.Tried to understand TextListener but could not figure out.Can anyone help me with the code??
Thanks in Advance!!!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / JFC / AWT forum..
 
P Veer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OOps!! Sorry!! I put it in the wrong Place.Can Anyone Help me out with this problem???

Thanks in advance!!
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you post your code ..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!