I tried both
>> mydesign < read.table\(tablewang.txt, header=T, sep="\t" \)

and

>> mydesign < read.table\("/truba/home/ikryvoruchko/selma/tablewang.txt", header=T, sep="\t" \)

both ways it says no such file or directory. Why is this?
Note: i am using a server
Note: even getwd() did not work. but r environment works. How can this happen?

Try

mydesign < read.table(tablewang.txt, header=T, sep="\t" )

Those /'s should not be there.