• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to import ASCII file and paint from it?

 
Niko San
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have ASCII file with lines like:



I have to paint it only in awt.
How can I import that records?

Please, help.

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You can open a stream to the file, read the data and process it.
Check out the BufferedReader class which allows you to read one line of text from the give file at a time.
 
Campbell Ritchie
Marshal
Posts: 52590
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why on earth do you want to use AWT? That is obsolete coding.

And welcome again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!