I am trying to read a text file and put the content in an array. I opened the file using ifstream successfully on my computer and read the file but I want this file to be opened on an MRI scanner which uses a different operating system VxWorks and my code doesnt work there.
I came across another way of opening the file using ios::binary. Can someone explain what is the difference in opening the file this way ? Do you think binary mode is the one which is required to open it on VxWorks ?