merging similar file types during runtime of VB6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • selvakumark
    New Member
    • Feb 2008
    • 5

    merging similar file types during runtime of VB6.0

    I want to merge few files of same type in a directory dynamically(Onc e if the directory containing that file type choosen it should merge ) and then need to store the particular values in the msacces. Im using VB6.0. Can anybody please help me out.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Which type of file you are trying to merge ?

    Comment

    • selvakumark
      New Member
      • Feb 2008
      • 5

      #3
      Originally posted by debasisdas
      Which type of file you are trying to merge ?
      the type of the file is like .045.
      ex: that is an autogenerated like text file containing number of lines each with fixed size. ie all line will be in same size for all files.
      the file will be like g5140208.045

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        You need to read content of one file and append the same to another file then you can delete the first file.

        Have to repeat the same for all files.

        Comment

        • selvakumark
          New Member
          • Feb 2008
          • 5

          #5
          i have done inserting to ms acces after spliting the required values of each line ifor all the files. The requirement now is there can be 5 to 10 files in a particular directory of which all the files containg the values are to be inserted in a single execution. that is once i give upload all the files should get uploaded and not a single file in that directory

          Comment

          • selvakumark
            New Member
            • Feb 2008
            • 5

            #6
            Im new to VB. The thing is i can read a file each at a time. Ho to read multiple file and write and then upload to DB. Can you pls guide me with syntax.

            Comment

            • debasisdas
              Recognized Expert Expert
              • Dec 2006
              • 8119

              #7
              Try to use FIlesystem object.

              There are number of threads regarding this in the forum. Please use search box on top right side of the page for the purpose.

              Comment

              • selvakumark
                New Member
                • Feb 2008
                • 5

                #8
                Originally posted by debasisdas
                Try to use FIlesystem object.

                There are number of threads regarding this in the forum. Please use search box on top right side of the page for the purpose.
                Thanks for you help Buddy :)

                Comment

                Working...