Originally posted by: tkotitan2
Originally posted by: Description
i would just write about a 10 line C program to do it.
How could that possibly take ten lines?
well, i was counting the #include statements, main, and the traditional one-brace-per-line C-style coding. There'd have to be at least one for statement, and one ifstream declaration, and the opening of the stream, and the writing to it. And we can't forget the good ole return 0; that every good programmer should put it. So if i whipped it up quick it would be like 10 lines. If you really tried, you may be able to squeeze it onto two or three, but then it depends what standard your C compiler follows.