Recent

Author Topic: Write to a new file.  (Read 865 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 9189
Re: Write to a new file.
« Reply #15 on: June 18, 2019, 02:20:20 pm »
It is as rvk and me wrote:
https://www.freepascal.org/docs-html/current/prog/progsu38.html#x45-440001.2.38

It is always a good idea to examine the documentation
also related to equus asinus.

JimR

  • New Member
  • *
  • Posts: 11
Re: Write to a new file.
« Reply #16 on: June 18, 2019, 09:22:50 pm »
It works now.  Not sure why, but I'll take it.  I pulled all the IO checking and made a few other changes, sent the data to a listbox to make sure it was working right and it went there just fine.  Changed several other minor things and suddenly it wrote a file to my HD with the correct data.  So I want to say thanks to all who offered help.  You help is much appreciated.  Now I can continue to try and learn more on using this language going forward.

Thanks again.
Jim

lucamar

  • Hero Member
  • *****
  • Posts: 2084
Re: Write to a new file.
« Reply #17 on: June 18, 2019, 10:45:10 pm »
Just for curiosity I made a test using the code in this post above and despite its--small--shortcomings it does work in--at least in this system.

Results in the attached image.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.