I want to iterate through an open file (buffer) in a macro and delete specific lines. I have searched the forum and SE Help for end of file, end of buffer, macro iterate, and more but I cannot find the answer.
I have this recorded macro. I just want to wrap it into while(!EOF).
_command DeleteDirLine() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
_macro('R',1);
top_of_buffer();
if (find_next('0')) stop();
_deselect();
begin_line_text_toggle();
deselect();
_select_char('','E');
cursor_down();
select_it("CHAR",'','E');
delete_selection();
}