[Tutorial] Implement BlockRead from Untyped files

by mochadwi
macOS ◆ xterm-256color ◆ zsh 477 views

I tried to store the actual binary from untyped files using 3 method storing:

  1. store to the local variable of same data type
  2. store to the global variable of the right data type (to show up later)

When only using the first step (the only differences is directly to global variable), it is doesn’t work. I’m still curious what is happened in the background. It only store the last element instead of that binary. So, the previous ones is overwrited!

For more info, check my modified source code here: https://gist.github.com/mochadwi/23f0e9d2ec62e32ef940c77ca96d795a

I modify that source code from here: http://www.baskent.edu.tr/~tkaracay/etudio/ders/prg/pascal/PasHTM1/pas/pasl1013.html