Fortran Fortran locate symbol in data file

AI Thread Summary
The discussion focuses on the challenge of identifying and removing the string '////' from a data file. The user attempted to use an equality operator in their code but encountered an error indicating that the operation must involve scalar values rather than arrays. Suggestions include using text editing tools like VI editor or Wordpad for a simpler search and replace solution. The conversation emphasizes the need for effective methods to manipulate data files and troubleshoot coding errors related to string handling.
agalya
Messages
9
Reaction score
0
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 I am thinking?
Can somebody help me in this regard
thanks in advance
 
Last edited:
Technology news on Phys.org
Have you tried just using the VI editor...or even Wordpad (Search and Replace)?
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
12
Views
3K
Replies
2
Views
2K
Replies
16
Views
3K
Replies
1
Views
1K
Replies
20
Views
9K
Replies
16
Views
2K
Replies
12
Views
15K
Replies
2
Views
2K
Back
Top