-
Using readInt to load in matrix values
Hello,
I am trying to load in a large matrix from a text file to use as parameters for my application. I have been using readInt to read in the numbers one-by-one, but it doesn't seem to read them in correctly, causing me to wonder whether there is a problem with the data type in the file (it is text file output from Matlab). The file is a matrix with tab-delimited columns and return-delimited rows. Below is an excerpt from my code. I'd appreciate any advice you can give!
Thanks!
for i...
for n...
try{ d[i][n]=inputdemands.readInt();
}
catch EOFException...
catch IOException...
}}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks