merge txt files

Discussion in 'Questions (Windows Mobile)' started by Georg, Sep 22, 2008.

  1. Georg

    Georg Member Licensed User

    how can I merge some txt files an a fast way perhaps like
    Text1.txt + text2.txt + ......
    Is there an example?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Something like:
    Code:
    FileOpen(c1,"Text1.txt",cRead)
    FileOpen(c2,
    "Text2.txt",cRead)
    FileOpen(c3,
    "out.txt",cWrite)
    FileWrite(c3,FileReadToEnd(c1))
    FileWrite(c3,FileReadToEnd(c2))
    FileClose(c1)
    FileClose(c2)
    FileClose(c3)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice