Well, I ONLY know how to create and create & insert text onto your local images, including PNG, JPEG, GIF, TIFF and BMP with the help of following demo methods in vb.net application.
Even though it was solved I wanted to remark on something....
keskiverto wrote:
Does it create a file?
Unless something has changed, ofstream should always creates the file even if you don't end up writing to it. As I believe ofstream.open("file", ...); automatically creates the file.
Double checking.....yeah..using a slightly modified version of his code:
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <fstream>
int main()
{
int id = 0;
std::ofstream fin;
fin.open("KESKIVERTO.CHECK");
while(id < 5){
++id;
}
fin.close();
return 0;
}
:~/projects/cpp/tests/verto$ ls
keskiverto.cpp
:~/projects/cpp/tests/verto$ g++ -o keskiverto keskiverto.cpp
:~/projects/cpp/tests/verto$ ls
keskiverto keskiverto.cpp
:~/projects/cpp/tests/verto$ ./keskiverto
:~/projects/cpp/tests/verto$ ls
keskiverto KESKIVERTO.CHECK keskiverto.cpp
:~/projects/cpp/tests/verto$ cat KESKIVERTO.CHECK
:~/projects/cpp/tests/verto$