Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Delayed printing to a text file

Hi, this is my first post here.

I have a program which prints out statments to a .log file periodically. However the statment does not appear in the .log file immediatly, when this line is called:
Print #m_logFileHandle, strDateTime & vbTab & logText

I know I had this problem in C++ before and I think the solution was to do a stream dump. I'm not sure if there is a similar solution in this case. Or is there another set of functions to use to output to a file?

Thanks in advance.

Comments

  • Termc1224Termc1224 Member Posts: 84
    : Hi, this is my first post here.
    :
    : I have a program which prints out statments to a .log file
    : periodically. However the statment does not appear in the .log file
    : immediatly, when this line is called:
    : Print #m_logFileHandle, strDateTime & vbTab & logText
    :
    : I know I had this problem in C++ before and I think the solution was
    : to do a stream dump. I'm not sure if there is a similar solution in
    : this case. Or is there another set of functions to use to output to
    : a file?
    :
    : Thanks in advance.
    :

    Have you close the file after printing, i hope this would help.
    Close Filenumber

    I'm the best there is,
    the best there was,
    and the best there ever will be.
    hahahahaha lolz :)
Sign In or Register to comment.