TWBR is overwritten in Wire.begin()
Can you tell me plz how can I set i2c baudrate to 400KHz?
Regarding the delay(0.05); you're absolutely right. I removed it and the slave kept receiving data. So there's no need to let it wait.
Do you expect on the PC to receive a vertical tab (ASCII 11)?
The PC is reading in fact a file containing a vertical ascii tab. I expect to receive in the master side that tab.
Each time the master asks the slave to give him data, the slave in the receiveData() function asks the PC to give him a value from the tab via serial communication. That's why I used the serial communication inside the receiveData() which seems a bad way.
Where can I tell my slave to read from serial when it receives data from wire ?