Question: How can I check if there is more content in a text file in c++ and if there is continue to read it?
I am trying to read a some words from a text file but the number of words is not specified.

Answer: 
Today I have solved exactly the same problem. I think the main problem is in VirtualBox USB controller. Go to the settings of your virtual machine, select USB and you will see 'USB Controller 1.1 (OHCI)' by default. You have to select 'USB controller 2.0 (EHCI)'.
I have:
- VirtualBox: 5.1.12r112440 (Qt5.6.2)
- macOS Sierra 10.12.2 with the latest updates.
- XCode 8.2
- iPhone 5, iOS 10.2

Be sure that:
- You have original lightning cable
- You can see your iDevice in iTunes
- Try to restart your MAC and iDevice
1.Clean Project
2. Go to window tab , Device and simulator
3.Right click on your device list then click unpair device and reconnect the device.[![enter image description here](https://i.stack.imgur.com/wj3l8.png)](https://i.stack.imgur.com/wj3l8.png)