Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
How to import ASCII file and paint from it?
Niko San
Greenhorn
Posts: 1
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have ASCII file with lines like:
0.000 266 142 0.000 273 150
I have to paint it only in awt.
How can I import that records?
Please, help.
Maneesh Godbole
Bartender
Posts: 11497
19
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
Campbell Ritchie
Marshal
Posts: 79177
377
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why on earth do you want to use AWT? That is obsolete coding.
And welcome again
What's that smell? Hey, sniff this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
need help with calculation in my spreadsheet array
Two different images to show up as two different colors?
BufferedReader & BufferedWriter - write(<string>) writes 10 lines while readline() reads only five.
method calls
dumping whole database
format decimal number
More...