Hello Bart,<br><br>Attached you will find the Free Pascal program (it's a console program and 11KB in size), the file it's supposed to alter, and the file the program is supposed to spit out.<br><br>The last two values in the rows in VchrtTRN.TXT are not supposed to have values of 0.0. This is where my problem is: why doesn't the program give me the expected, non-zero answer?<br>
<br>Perhaps there are compiler switches or something old and arcane like that, about which I am ignorant. At any rate, I'm stumped. If you can figure out my bone-headed errors, I'd be most grateful :)<br><br>Ko Hashiguchi<br>
<br><div class="gmail_quote">On Tue, Jul 5, 2011 at 3:59 AM, Bart <span dir="ltr"><<a href="mailto:bartjunk64@gmail.com">bartjunk64@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Well, show us some example code, and some example files that go wrong,<br>
otherwise ti'll be hard to help.<br>
<br>
Bart<br>
<div><div></div><div class="h5"><br>
On 7/4/11, Ko Hashiguchi <<a href="mailto:ko.d.hashiguchi@gmail.com">ko.d.hashiguchi@gmail.com</a>> wrote:<br>
> Sirs (and Madams, as need be),<br>
><br>
> I use Free Pascal to compose simple filters: I take in a comma-delimited<br>
> ASCII file, work the data, and spit back out the altered info.<br>
><br>
> I'm having a problem in that my program does not seem to be reading all of<br>
> the ASCII files. The files are mostly double-precision numbers; I read and<br>
> rewrite the files just to set up the filter and make sure it works, as a<br>
> prelude to adding data-altering code, and the numbers on the end show up as<br>
> zeros, not the double-precision numbers desired.<br>
><br>
> If I need to send a snippet of code, please let me know. You are<br>
> corresponding to an amateur programmer, although the code I'm writing is<br>
> going to be for personal business purposes.<br>
><br>
> Thank you for your consideration,<br>
><br>
> Ko Hashiguchi<br>
><br>
</div></div>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div><br>