|
int count, total = 0;
char buffer[1000];
long file_stream;
char *filename = "d:\\Program Files\\LoadRunner7.8\\scripts\\readme.txt";
char *p, str[] = "this is the first line of the log file";
int c;
vuser_init()
{
if ((file_stream = fopen(filename, "w+b") == NULL) ) {
lr_error_message("Cannot open %s", filename);
return -1;
}
p = str;
/* p points to the first character in str */
while ((*p != NULL) && fputc(*(p++), filename) != -1); /* use -1 for EOF */
fclose(filename);
}
报出错误是:Error: C-interpreter run time error: vuser_init.c (23): Error -- memory violation : Exception ACCESS_VIOLATION received.
那位知道解决请指教.刚学测试... |
|