erase the content of a file

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
karimtarbali
Posts: 82
Joined: Fri Aug 14, 2009 12:11 am
Location: iiees

erase the content of a file

Post by karimtarbali »

hi
is there any way to erase the content of a file directly?
i use this commands :
set d [open Data/start.txt w]; puts $d " " ; close $d;

since i already has opened this file as append format (set d [open Data/start.txt w]) an error occurs in NEEshub interpreter.

is there any other way to erase the content of a file?

thanks for your help
kt
Post Reply