Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Text files Posted by DrMarten on 25 Mar 2005 at 6:06 PM
If this was the PASCAL room I could have helped more.

Anyway one way would be ReadInputFile in two loops.

In 1st loop WriteOutputFile1 up to where you want to insert text to a new file.

In 2nd loop WriteOutputFile2 from the end of where you want to insert text to a new file.

Join the files WriteOutputFile1+InsertedTextFile+WriteOuputFile2 as a new file.

You might find a DOS "JOIN" command on the net if you can call a MS-DOS action from within VB, I don't know about this.

CMD brings up a console window if you type it in the "RUN" area from the windows START button.

Hope this might give you an idea to write a VB join program maybe as well?

Hope this helps.

Thread Tree
Fosfor Text files on 16 Mar 2005 at 12:18 AM
HackmanC Re: Text files on 18 Mar 2005 at 11:24 AM
Fosfor Re: Text files on 23 Mar 2005 at 12:45 AM
infidel Re: Text files on 23 Mar 2005 at 7:34 AM
Fosfor Re: Text files on 24 Mar 2005 at 12:08 AM
DrMarten Re: Text files on 25 Mar 2005 at 6:06 PM
Fosfor Re: Text files on 28 Mar 2005 at 11:14 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.