cratepy.ioput.readprocedures.searchkeywordline

searchkeywordline(file, keyword)[source]

Search mandatory keyword in data file and get corresponding line number.

Parameters:
  • file (file) – Data file.

  • keyword (str) – Keyword.

Returns:

line_number – Number of data file line where the keyword is first found.

Return type:

int