Home › Forums › C++ Programming › binary files visual c++
- This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by Anonymous.
- AuthorPosts
- April 23, 2012 at 8:54 pm #2252AnonymousInactive
Hi! I am trying to open a binary file of type CStdioFile, but only if the file exist but it doesn´t work.
This is that I do:12345678910111213CStdioFile file;<br />CString line;<br /><br />// Open the file if exist<br />if(!archivo.Open("archivo.dat", CFile::modeRead))<br />{<br />// Read the file<br />archivo.ReadString(linea));<br />}<br />else // if the file does not exist<br />{<br />return;<br />}Can someone help me? Thank you in advance
- May 14, 2012 at 6:45 pm #3657AnonymousInactive
I found the solution
12345678910CStdioFile file;<br />CString line;<br />if(file.Open("color.dat", CFile::modeRead))<br />{<br />while(line.IsEmpty())<br />{<br />file.ReadString(line);<br />}<br />file.Close();<br />} - July 10, 2012 at 3:09 am #3658AnonymousInactive
Our daily lives in the laser pointer, high-quality, inexpensive laser pointer
We is a professional Laser Pointer online store, aiming to be the best a laser pointer retailer on the NET. Laser pointer in teaching should be the most widely used, laser pointer, also known as a a laser pointer or the star pen, the use of low-power the visible a laser allows users to play body language in the teaching, demonstration maximum advantage, teaching, lectures more lively, more perfect, and completely resolved in the past in the classroom use the mouse for the inconvenience, but also to help amateur astronomers identify stars and will become an important technical issues and market opportunities and conferences.
We are so happy that you can come here to see our laser products. You will find many Laser pens with novel the style and reliable quality. Dedicated to teaching green laser pointer You can buy a high powered a laser pointers with a low prices and multifunction. The bule laser pointer we offer is fashionable and popular all over the world. A chance comes only once, hastened to action!
Since 2003, we has become a well established and famous brand name in the international a laser market by carrying a huge selection of high quality and cheap laser pointers to worldwide the customers.
- AuthorPosts
- The forum ‘C++ Programming’ is closed to new topics and replies.