PDA

View Full Version : Fortran locate symbol in data file


agalya
Oct9-09, 02:09 AM
I need to look for the presence of '////' in my data file
i could read it as character
since i need to eliminate them from the file,
I've tried to avoid them using
if(xx .eq. '////') then
but is not working the error comes as
if(mt.ne. '////')then
Equality operator at (1) must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic or character scalars, or a combination of both --
but the subexpression at (2)(it '////') is an array

how to achieve what im thinking?
Can somebody help me in this regard
thanks in advance

minger
Oct9-09, 08:27 AM
Have you tried just using the VI editor...or even Wordpad (Search and Replace)?