RE: getc() function and end of file

new topic     » topic index » view thread      » older message » newer message

Euman wrote:
> Could you use something like this?

yeah, i do that all the time. i usually code it like this:

function lof (integer fn)
  integer fpos,feof
  fpos=where(fn)
  if seek(fn,-1) then end if
  feof=where(fn)
  if seek(fn,fpos) then end if
  return feof
end function

remeniscent of BASIC's LOF(), isn't it? ;)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu