Show More
Commit Description:
[web] add test result page...
Commit Description:
[web] add test result page git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@159 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/helpers/test_helper.rb | 11 lines | 148 B | text/x-ruby | RubyLexer |
module TestHelper
def read_textfile(fname,max_size=2048)
begin
File.open(fname).read(max_size)
rescue
nil
end
end
end