Re: textfile
From: Jakob Olsen (jakobols_at_tiscali.dk)
Date: 05/11/04
- Next message: Joe Cipale: "Re: determine operating system"
- Previous message: Karl Heinz Buchegger: "Re: best result function"
- In reply to: BjoernJackschina: "textfile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 May 2004 16:07:22 +0200
// ofstream::open
#include <fstream>
using namespace std;
int main()
{
ofstream outfile;
outfile.open ("test.txt", ofstream::out | ofstream::app);
outfile << "WORD1\tNAVN1\nWORD2\tNAVN2\n";
outfile.close();
return 0;
}
"BjoernJackschina" <jacksch_1@hotmail.com> wrote in message
news:a24000a2.0405110300.52ec6400@posting.google.com...
> Hello,
> I just want to write something in a textfile. It should have this
structure:
> word "\t" word1 "\n"
> word2 "\t" word3 "\n"
> and so on.
> What is the source code for this example?
> Many thanks
- Next message: Joe Cipale: "Re: determine operating system"
- Previous message: Karl Heinz Buchegger: "Re: best result function"
- In reply to: BjoernJackschina: "textfile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|