best programming language for file I/O?

JMaster

Golden Member
Feb 9, 2000
1,240
0
0
Of the following, what's the best programming language for file manipulation (simple text file input/output)?
Java, C, C++

 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Definitely not C. I don't know java and I haven't used file i/o too much in C++, but I know enough to know that they are infinitely better than C file i/o. ;)
 

Gibson12345

Member
Aug 31, 2002
191
0
0
I can't compare the three (I only "know" Java), but Java isn't too horrible. InputStream -> BufferedReader, loop for the entirety of the text file, and catch an IOException.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
There's no best language for anything as it wildly depends on what it is you are trying to do. Java is the simplest, imo, but it comes at an expense. You need to further qualify your needs before one can say what's best.
 

JMaster

Golden Member
Feb 9, 2000
1,240
0
0
Originally posted by: Descartes
There's no best language for anything as it wildly depends on what it is you are trying to do. Java is the simplest, imo, but it comes at an expense. You need to further qualify your needs before one can say what's best.

well basically, I'm inputting a file with assembly language code, then converting and outputting the corresponding hex numbers into a different file.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
out of your options, i would say Java is probably easiest. for the problem you described, perl.