How output text to file .txt?


this code:

#include "iostream.h"

#include "fstream.h"

 

   ofstream myfile;

   myfile.open ("c:\test.txt");

   myfile << "text";

   myfile.close();

 

but occur error c1083: cannot open include file: 'iostream.h': no such file or directory.

how output text file .txt?

try following

#include <iostream>

 

iostream.h old non standard header no longer shipped newer vs versions.

 

-manan



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop