The old - read from an SD card question

if (hash1==35) {data1=(myFile.read());Serial.print(char(data1));data2=(myFile.read());Serial.print(char(data2));}   //If a hash is found, get the line number of the data

Whether or not the code is doing what is required, the first thing that I would do is to make it readable

if (hash1 == 35)
{
  data1 = myFile.read();  //If a hash is found, get the line number of the data
  Serial.print(char(data1));
  data2 = myFile.read();
  Serial.print(char(data2));
}