Write file contents to the connection
ns_writefp writes the contents of the specified file to the connection. You can specify the number of bytes to be copied in the nbytes argument. By default, the entire file is copied.
ns_register_proc GET /sampleWriteFp sampleWriteFp proc sampleWriteFp { conn ignore } { set file [open "/home/people/juan/machine.txt" r] ns_writefp $file close $file }