cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
converting a text to ascii then hexadeci
converting a text to ascii then hexadecimal
May 16, 2017 at 9:13am UTC
chep
(3)
hey,
can someone assist me in writing a code that can produce an ascii and hexadecimal from a text inputed. i know how to write a code that can change ascii and hexadecimal but i don know how to write one that has to use an ascii text file
Last edited on
May 16, 2017 at 9:15am UTC
May 16, 2017 at 1:56pm UTC
jonnin
(11315)
are you asking how to read a file?
#include<fstream>
ifstream in(filename);
you can use in just like cin:
in >> variable;
etc.
...
in.close();
Topic archived. No new replies allowed.