Recent content by manjurul

  1. M

    Fortran How can I search for a specific phrase in a sentence using FORTRAN?

    I need to write a code which can read the following sentence from a text file, "I know that he is a good boy!". After reading it, the code has to search if the word "good boy" is there or not. Also the position number of "good boy" in the sentence (i.e. after how many character) Kindly anyone...
  2. M

    Fortran How can I search for a specific phrase in a sentence using FORTRAN?

    Hi Nisha, You need to use FORMAT statement and it is not difficult to do that.. you can see the following link to do that, http://fortranmanjurul.blogspot.com/ also test the following code and see how FORMAT statement works PROGRAM readonce REAL*8 X/1.23D0/...
  3. M

    Fortran How can I search for a specific phrase in a sentence using FORTRAN?

    For output the general forms are as follows, WRITE (unit, format) listfor the details of 'unit', 'format' and 'list' see above.
  4. M

    Fortran How can I search for a specific phrase in a sentence using FORTRAN?

    Most of the examples here are given from the following book, Michael Kupferschmid, "Classical Fortran: Programming for Engineering and Scientific Applications", Taylor & Francis Group, 2009 The generalized form of READ command is as follows, READ (unit, format) list where, the value of...