Solved

Flushing a file buffer..VB6

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

813 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

15 Experts available now in Live!

Get 1:1 Help Now