Recent

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

Thaddy

  • Hero Member
  • *****
  • Posts: 14214
  • Probably until I exterminate Putin.
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
Specialize a type, not a var.

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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018