tags:

views:

68

answers:

2

Sir pls tell me how to create .I file (extended source file) in c

+2  A: 

A common way to create files in C is with the fopen() function.

#include <stdio.h>

FILE *handle;
handle = fopen("extended.I", "w");
if (handle != NULL) {
    /* ... */
    fclose(handle);
}
pmg
no this is not my answer
Chhavi Agrawal
given the ambiguity of the query, this seems like a perfectly sane (and correct) answer.
KevinDTimm
+3  A: 

Terribly vague question, but it sounds like you are using Visual Studio. Right-click your project, Properties, C/C++, Preprocessor, change "Generate Preprocessed File" to Yes.

After you rebuild, you'll get the .i files with the preprocessor output in your project directory.

Hans Passant
+1 my vague question translator indicates this is probably what he is after
Necrolis
I want one of those vague question translators ( +1 ).
pmg