replaceFirstLine replaces the first line of a file with a string. This function is used in the trace test functions.
i1 : writeStartFile(storeBM2Files,{{2,3},{4,5}}) o1 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-30772-0/0/start o1 : File |
i2 : replaceFirstLine(storeBM2Files,"start","1") o2 = 0 |