Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cut first line from notepad
#7
Huge thanks to you r0n for your post! Your explanations for me more clear than the text from ContextHelp. I understand that it is does not matter how many symbols in the line, QM will count everything of them
Can you to prompt me, if I need to edit the file 1.txt , by your code, from №1 to №2 how it wil be look?
№1
ABC
DEF
GHI

A B C [ ] D E F [ ] G H I
0 1 2 3 4 5 6 7 8 9 10 11 12

№2
DEF
GHI
D E F [ ] G H I
0 1 2 3 4 5 6 7
I need to use code like this
Code:
Copy      Help
str s="$desktop$\1.txt"
str get_text.getfile(s)
str getline
int line_pos=getline.getl(get_text 0) ;; '0' and we have first LINE,'
out line_pos ;; This should output 0

get_text.remove(line_pos getline.len)
;;* and somehow to delete empty line in "memory" and save new text (without empty line) in file


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)