Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Threads
Search Coderanch
Advance search
Google search
Register / Login
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:
Threads and Synchronization
reading floats from file
Patrick ODonnell
Ranch Hand
Posts: 31
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a text file as follows:
-0.891
0.893
1.022
.
.
i.e. a list of numbers.
I want to be able to read in each line and store it in a float[] array, so i can perform some math operations on it. how do I do this.
Thanks,
Patrick.
Peter den Haan
author
Posts: 3252
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please don't crosspost - people will waste their time giving duplicate answers. I/O was the right forum for this.
- Peter
Peter den Haan
| peterdenhaan.com | quantum computing specialist, Objectivity Ltd
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
why do I get NoClassDefFoundError????
reading integer from a file
ejb3.proxy erro
File(s) format for SCEA -Beta
File download
More...