On 03/15/2011 05:40 AM, ChangCheng wrote: > Hi, i have tried the version v2.1.6,I still got same problem.could not load > file.AnySuggestion?
So, I tried this in a plugin (and I also looked at the code), and it looks fine to me. I added this to a plugin of mine: char buf[1024]; TSFile f = TSfopen("/tmp/conf.config", "r"); TSfread(f, buf, sizeof(buf)); printf("TSfopen() returns %d\n", f ? 1 : 0); printf("TSfread() read %s\n", buf); TSfclose(f); and when run, I see TSfopen() returns 1 TSfread() read CONFIG proxy.config.http.insert_request_via_str INT 0 (which is exactly as expected). -- Leif