- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the best way of increasing array size in an application that adds data into arrays from records from input files, to allow for indefinite numbers of records from an indefinite number of files (up to a limit of course), without having to define very large (fixed) array sizes at compile time?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count the number of records and use an allocatable array of whatever you are using to represent each record's information. If you have a fixed length record, just use GETFILEINFOQQ to get the total size so you can determine the number of records, then ALLOCATE then and read them into the newly allocated array.
James
James
![](/skins/images/045A6C88D0527A93E76B179D7F5E2AFE/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page