Data types of the values inside a text file ?
-
Hi, In a text file, are the data types of the values in the file all of the type char or can there be integers inside? I wrote a code which produces random numbers and they are to be written to a text file. int value; ofstream outClientFile("1111 combination.txt",ios::out); value = rand()%2; outClientFile<
-
Hi, In a text file, are the data types of the values in the file all of the type char or can there be integers inside? I wrote a code which produces random numbers and they are to be written to a text file. int value; ofstream outClientFile("1111 combination.txt",ios::out); value = rand()%2; outClientFile<
-
Hi, In a text file, are the data types of the values in the file all of the type char or can there be integers inside? I wrote a code which produces random numbers and they are to be written to a text file. int value; ofstream outClientFile("1111 combination.txt",ios::out); value = rand()%2; outClientFile<
KaKa' wrote:
ofstream outClientFile("1111 combination.txt",ios::out); value = rand()%2; outClientFile<
it upto to you treat data in file... every thing written in file is string or binary digit (in case of binary file, which in turn also a string!)..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You