Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,10 @@
|
|||
f[doc_String, start_Integer, n_Integer] := Module[{p, newdoc},
|
||||
p = Import[doc, "List"];
|
||||
If[start + n - 1 <= Length@p,
|
||||
p = Drop[p, {start, start + n - 1}];
|
||||
newdoc = FileNameJoin[{DirectoryName[doc], FileBaseName[doc] <> "_removed.txt"}];
|
||||
Export[newdoc, p, "List"];
|
||||
,
|
||||
Print["Too few lines in document. Operation aborted."]
|
||||
]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue