none
continue to write on another delo same sheet files RRS feed

  • Question

  • Hello everyone, I apologize for my English, I'm using google translator
    I wanted to know if a writing of a text file I can make a verification of the type: if I exceed the 10 lines of a continuous sheet to write on a new text file sheet.
    I hope you get the idea
    thank you all
    Tuesday, March 1, 2016 1:26 PM

Answers

  • Do you want something like ? :

    baseName= Program.Directory+"\txtfile"
    for i=1 to 3
      outFile=baseName+i+".txt"
      TextWindow.WriteLine(outFile)
      For j=1 To 10
        cnt="contents file : "+i+"  line "+j  
        TextWindow.WriteLine(cnt)
        File.AppendContents(outFile,cnt)
      EndFor
    EndFor
        


    Jan [ WhTurner ] The Netherlands

    Tuesday, March 1, 2016 6:04 PM
    Answerer

All replies

  • Do you want something like ? :

    baseName= Program.Directory+"\txtfile"
    for i=1 to 3
      outFile=baseName+i+".txt"
      TextWindow.WriteLine(outFile)
      For j=1 To 10
        cnt="contents file : "+i+"  line "+j  
        TextWindow.WriteLine(cnt)
        File.AppendContents(outFile,cnt)
      EndFor
    EndFor
        


    Jan [ WhTurner ] The Netherlands

    Tuesday, March 1, 2016 6:04 PM
    Answerer
  • is more or less is this one... i just have to try this in my project...making him appear in the text file.
    Friday, March 4, 2016 1:51 PM