Re: FGETS how many bytes read?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Len(lcAsciiLine) should tell you that, shouldn't it? What am I missing?

Dan

"Bernie Beattie" <BernieBeattie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F13582C-3637-429A-9743-71A829D5C0CD@xxxxxxxxxxxxxxxx
Is there any way of determining how many bytes were read by an FGETS
command?
e.g. lcAsciiLine = FGETS(lnFileHandle, 762) may not actually read 762
bytes
if it reaches the end of the line first. I want to calculate a percentage
read so far but the number of bytes per line varies because of carriage
returns. I know how to find the size of the whole file using FSEEK but not
the size of each line.

Thanks for any suggestions,

Bernie Beattie


.



Relevant Pages

  • Re: FGETS how many bytes read?
    ... After the gets, the current file position = fseek ... "Bernie Beattie" wrote in message ... I know how to find the size of the whole file using FSEEK but not ...
    (microsoft.public.fox.programmer.exchange)
  • Re: FGETS how many bytes read?
    ... read so far but the number of bytes per line varies because of carriage ... I know how to find the size of the whole file using FSEEK but not ... Bernie Beattie ...
    (microsoft.public.fox.programmer.exchange)
  • ld.so.1: fatal ImportError: ld.so.1 No such file or directory
    ... you've GOT to finnd the missing file! ... This command above should go in your rc file, eg, ~/.tcshrc, ~/.cshrc, ... If you are still having trouble, ... try section-3 below, but then you're on your own. ...
    (comp.lang.python)
  • Re: Changing printer settings with Rundll32 - XP Embedded
    ... I will try to upload the FileMon log file tomorrow at on the XPEFiles.com ... related if the error is there not due to a missing component. ... DependencyWalker showing missing msjava.dll is typically a bogus message. ... did you make sure Print Spooler service is running before you issued that command? ...
    (microsoft.public.windowsxp.embedded)
  • Re: Changing printer settings with Rundll32 - XP Embedded
    ... If a Dll is missing you'd see there are failures on loading that dll in the FileMon log. ... DependencyWalker showing missing msjava.dll is typically a bogus message. ... did you make sure Print Spooler service is running before you issued that command? ... then you will see a new Profile menu on the top. ...
    (microsoft.public.windowsxp.embedded)