next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > file manipulation > moveFile(String,String)

moveFile(String,String)

Synopsis

Description

i1 : src = temporaryFileName()

o1 = /tmp/M2-28102-1
i2 : dst = temporaryFileName()

o2 = /tmp/M2-28102-2
i3 : src << "hi there" << close

o3 = /tmp/M2-28102-1

o3 : File
i4 : moveFile(src,dst,Verbose=>true)
--moving: /tmp/M2-28102-1 -> /tmp/M2-28102-2
i5 : get dst

o5 = hi there
i6 : removeFile dst

See also