View Single Post
Old 09-10-2008, 10:52 AM   #39 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

I can confirm it compiles on linux, although you may need to change the line:
cpp Code:
system("test.txt");
to something like
cpp Code:
system("cat test.txt");//cat vi nano whatever
 
so linux knows what to do with it.

in a similar vein, heres ruby:
ruby Code:
File.open('test.txt', 'w') {|f| f.write("Hello World \n\r") }
exec("cat test.txt")
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

Last edited by sketchMedia : 09-10-2008 at 11:13 AM.
sketchMedia is offline  
Reply With Quote