Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Create-a-file/Mathematica/create-a-file.math
Normal file
11
Task/Create-a-file/Mathematica/create-a-file.math
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"]
|
||||
(*"left<>right" is shorthand for "StringJoin[left,right]"*)
|
||||
Loading…
Add table
Add a link
Reference in a new issue