Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 3rd, 2005, 02:47 PM
Authorized User
 
Join Date: Jun 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default Open For Append As #1

Hi! to all

I have a current project to read and write large text. I used Open Input as Binary #1. to speed up the reading the text file inside the loop of Open as Binary I used Open for Append function. but using Open for Append function makes the process slow is there any Function for Append as Binary just to speed up the process.

Thanks,
Rylemer



 
Old June 3rd, 2005, 03:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you loop to read the file, why do you have to open for append?
Marco
 
Old June 3rd, 2005, 03:23 PM
Authorized User
 
Join Date: Jun 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default

Marco,

I look for a Unique value in the text file then after i look for a unique I save it as text file also.

here my example.
this is the text file I read.

A
A
B
B
C
C
C

then the output will be A.txt B.txt C.txt

thanks,
Elmer

 
Old June 5th, 2005, 03:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in your example the text file has 7 lines, A, B and C (I guess they are strings) are unique. Correct me if I am wrong.
Now, what about the output? A.txt, B.txt and C.txt are file names. What do you want to do with them?
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-using Append Queries steve smart Access 1 May 17th, 2007 11:37 AM
Open document, Open second doc and copy to first justabeginner Word VBA 1 March 7th, 2007 02:47 AM
Open the "Open File" dialogue box piratelordx Access VBA 4 March 14th, 2006 10:08 PM
Append Query Cybersurfer Access 1 February 13th, 2006 01:02 PM
append to [email protected] VB Databases Basics 3 June 22nd, 2003 04:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.