.true. help



dear friends,
in a program, i have to check if a given file is created.
i tried with
if (file==.true.) write "file created"
where file is character variable(the file name will vary itself in the
program).....which obviously gives error.

can anyone suggest me how to do this?
.