CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 17

Threaded View

  1. #1
    Join Date
    Apr 2011
    Posts
    23

    Output to txt document

    NOTE THIS QUESTION NO LONGER APPLYS PLEASE READ POST #15 but

    I will keep this here because the answer is given for this and it may be useful to someone else


    Need a bit of help I want to work on my second project but don't know where to start exactly...

    What I want it to do is grab all the files in a specified directory then output all of the names of the files on to a text document.

    But I want three lines of text and it needs to go in a key spot.

    xxxxxxxxxxxxxxxxxxxxxxxxxxxx (NAME OF FILE) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    (NAME OF FILE) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(NAME OF FILE)

    I would like for every file in the folder to basically get put where it says name of file for each instance. So for each instance it spits out all of the same text except for the name of the file is changed to match the complete file name.

    Thanks a million guys for any help in advance.
    Last edited by infringer; September 11th, 2011 at 01:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured