Solved

Flushing a file buffer..VB6

Posted on 2008-09-29
1
1,645 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now