HOW CAN I DELETE LINE FROM FILE IF ONLY IF



  • HOW CAN I DELETE LINE FROM FILE IF ONLY IF THAT LINE HAVE A SPICIAL WORD ON IT LIKE
    UTILITY File "test.txt" ReadLines -> VAR "A"
    IF "<A>" Contains "The SpicialWord"
    Function replace Or DELETE the Full Line
    End IF
    UTILITY File "THE NEW.txt" WriteLines-> VAR "B"

    PLEASE HALP THANX ♥



  • I try to make the reading file on list like <A[]> // if <A[]> Contains "The SpicialWord" // DELETE <A[*]> I GEt Error Please Any halp &Thanx ♥


  • Admin

    Read the whole file as lines to a list variable using UTILITY > File > ReadLines, then use the UTILITY > List > Remove block and finally write the list again to file using UTILITY > File > WriteLines


Log in to reply