定义一个类然后用一个static的方法
C#的方法class c{
public static void Fun(string x){
streamreader reader=new streamreader(server.mappath(x),encoding.default);
strBody=reader.readtoend();
reader.close();
}
}不会VB的写法,不好意思!