ID:831166
 
(See the best response by DarkCampainger.)
Code:
mob/verb/tell(T as text)
text2file(T,"talk.in")
shell("talk < talk.in > talk.out")
usr << file2text("talk.out")


Problem description:
this is a modified file2text example found using the f1 key. the shell statement is not creating the talk.out file. when executing the verb, there is no talk.out file created at root of game. why doesn't this code work?
Do you have an executable called "talk" in your working directory?
all i have is the file called talk.in
Best response
That shell call is assuming that there's an executable called "talk.exe" in your directory, which would have (in the hypothetical example the reference was making) generated the talk.out file. It's not supposed to work as given, per se, but rather demonstrate how you could call an executable (or use any other shell command) with the shell() process.
thank you DarkCampainger. i will remember this example