Yep Alan, it is working now..
The problem was with Flush().. It was missing.... But I am still confused about WriteLine() and ReadLine().. I have been looking for the maximum length of each but in vain.. I mean that if I have this example:
string s = "fgfdghfdjghjfdg.........................hghghghg"; // VERY VERY long string (I need to send details about ALL files that exist in a crowded folder !!)
Client: sw.WriteLine(s); sw.Flush();
Server: string received = sr.ReadLine();
will it work ?? Does STREAM mean it is like sending in real-time no matter what the length of the message ?? or does it mean there is still a buffer (in this case what is the max size.. I could not find it) ??.. In the worst case, is it better if I use a loop !!??? I wanted to avoid a LOOP for sending/receiving in order to decrease the Bluetooth overhead (I expect the transmission will be quicker if I send ALL data at once without using a loop)...
I'd be happy if you could help...
Thnx..