A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
11
Task/Create-a-file/Mathematica/create-a-file.mathematica
Normal file
11
Task/Create-a-file/Mathematica/create-a-file.mathematica
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
SetDirectory@NotebookDirectory[];
|
||||
t = OpenWrite["output.txt"]
|
||||
Close[t]
|
||||
s = OpenWrite[First@FileNameSplit[$InstallationDirectory] <> "\\output.txt"]
|
||||
Close[s]
|
||||
|
||||
(*In root directory*)
|
||||
CreateDirectory["\\docs"]
|
||||
(*In current operating directory*)
|
||||
CreateDirectory[Directory[]<>"\\docs"]
|
||||
(* "<>" is shorthand for "StringJoin[left,right]" *)
|
||||
Loading…
Add table
Add a link
Reference in a new issue