I can't seem to find anything on this issue, which kind of surprises me... I've looked around pretty thoroughly though.
I'd simply like to write to a file with a format that specifies the number of characters in the number, and the minimum number of dps. For instance, I need to write a line with two integers (2I5) followed by 6 reals (currently 6F8.4). The reals range from 1.something to 100.something so while this format permits the latter case the maximum number of dps it also limits the smaller numbers to only four dps, when more could clearly fit. I know we have some flexibility in this when dealing with reads, but things seem very rigid when it comes to writes and I can figure out no workaround.
I cannot just use list-directed because that uses up too many spaces per write and I can figure out no way to control that without using formatting, which gets me back to the original issue.
Any suggestions would be much appreciated.