If you'll accept solutions involving other technologies, then how about using
sed? On a unix system, to read in
file1, delete row
n and output to
file2, you'd do:
sed -e 'nd' file1 > file2
The quotes in
'nd' are not necessary in this case, since there is only one instruction. However, if you're doing more complicated stuff with regular expressions, you should include the quotes so that the regex is not interpreted as something else. So it's safer to include it in general.
If you want to edit the file in place, then the command is
sed -i '' -e 'nd' test
Note that the
-i is necessary if you don't want a backup. If you omit that then
sed assumes that the extension is being supplied via stdin, introducing additional files (which really are backups).
If you want to backup your file, just in case, then use
abc is any string of your choice (need not be limited to 3 chars) and the file will be backed up to
You can now run any of these commands from Mathematica via
command is the string with the actual command). Of course, replace
n above with your actual row number or if variable, modify
I don't use Windows, but cygwin should provide you with a linux environment for Windows.
If you only require
sed then cygwin is an overkill (takes a lot of space and is quite slow). A native build of
sed can be found as part of GnuWin32. Download here.