Lines Matching defs:file
533 string* file) {
538 *file = arg;
548 // Reads a file into a v8 string.
550 FILE* file = fopen(name.c_str(), "rb");
551 if (file == NULL) return Handle<String>();
553 fseek(file, 0, SEEK_END);
554 int size = ftell(file);
555 rewind(file);
560 int read = fread(&chars[i], 1, size - i, file);
563 fclose(file);
601 string file;
602 ParseOptions(argc, argv, options, &file);
603 if (file.empty()) {
608 Handle<String> source = ReadFile(file);
610 fprintf(stderr, "Error reading '%s'.\n", file.c_str());