Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy line from file
#1
Hello
help to me pls, how with qm I can copy 2 4 6 8 10 12 line from the txt file?
#2
Macro Macro2871
Code:
Copy      Help
str s.getfile("file path")
str line lines
int i
foreach line s
,i+1
,if(i&1) continue
,lines.addline(line)
,if(i=12) break

out lines
#3
Gintaras Wrote:Macro Macro2871
Code:
Copy      Help
str s.getfile("file path")
str line lines
int i
foreach line s
,i+1
,if(i&1) continue
,lines.addline(line)
,if(i=12) break

out lines
this code work, but I want to copy lines into the clipboard for pust it in other file in turn.. can you help me with it?
#4
Look in the "Text" dialog, the first button on the floating toolbar.
#5
Gintaras Wrote:Look in the "Text" dialog, the first button on the floating toolbar.
It is work for me!


Forum Jump:


Users browsing this thread: 7 Guest(s)