Solved

Flushing a file buffer..VB6

Posted on 2008-09-29
1
1,685 Views
Last Modified: 2012-08-13
Hi,

I am using VB6 and want to ensure that the text I pass to the Print method is flushed to file each time around the loop, I can I do this...?

I do not want to keep opening and closing the file NOR do I want to use the FileSystem object.

Thanks Ian
Open l_strFileToOpen For Output As #l_intFreeFile....
 
Loop
 Print #m_intOutFileNo, l_strLineToWrite
Next
 
 
Close #l_intFreeFile

Open in new window

0
Comment
Question by:ISC
1 Comment
 
LVL 1

Accepted Solution

by:
scuzzie earned 500 total points
ID: 22595708
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question