Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
David Crow21-Jan-10 8:48
David Crow21-Jan-10 8:48 
AnswerRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
JudyL_MD21-Jan-10 11:34
JudyL_MD21-Jan-10 11:34 
QuestionBeep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 18:41
Le@rner20-Jan-10 18:41 
AnswerRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 18:55
professionalRajesh R Subramanian20-Jan-10 18:55 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 19:35
Le@rner20-Jan-10 19:35 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 20:06
professionalRajesh R Subramanian20-Jan-10 20:06 
AnswerRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe20-Jan-10 19:04
LunaticFringe20-Jan-10 19:04 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 19:06
professionalRajesh R Subramanian20-Jan-10 19:06 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe20-Jan-10 19:27
LunaticFringe20-Jan-10 19:27 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 22:54
Le@rner20-Jan-10 22:54 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe21-Jan-10 2:11
LunaticFringe21-Jan-10 2:11 
QuestionSetFocus Function Pin
Pryabu20-Jan-10 17:27
Pryabu20-Jan-10 17:27 
AnswerRe: SetFocus Function Pin
Chris Losinger20-Jan-10 17:39
professionalChris Losinger20-Jan-10 17:39 
AnswerRe: SetFocus Function Pin
LunaticFringe20-Jan-10 17:40
LunaticFringe20-Jan-10 17:40 
AnswerRe: SetFocus Function Pin
vasu_sri20-Jan-10 21:23
vasu_sri20-Jan-10 21:23 
AnswerRe: SetFocus Function Pin
Stephen Hewitt21-Jan-10 1:02
Stephen Hewitt21-Jan-10 1:02 
QuestionC++ fstream's write operation is Sync or aSync? Pin
iceman861620-Jan-10 16:46
iceman861620-Jan-10 16:46 
AnswerRe: C++ fstream's write operation is Sync or aSync? Pin
Chris Losinger20-Jan-10 17:00
professionalChris Losinger20-Jan-10 17:00 
GeneralRe: C++ fstream's write operation is Sync or aSync? Pin
iceman861621-Jan-10 13:20
iceman861621-Jan-10 13:20 
QuestionReading files... Pin
Jacob Dixon20-Jan-10 16:25
Jacob Dixon20-Jan-10 16:25 
AnswerRe: Reading files... Pin
Jacob Dixon20-Jan-10 16:37
Jacob Dixon20-Jan-10 16:37 
AnswerRe: Reading files... Pin
Avi Berger20-Jan-10 16:48
Avi Berger20-Jan-10 16:48 
GeneralRe: Reading files... Pin
Jacob Dixon20-Jan-10 16:54
Jacob Dixon20-Jan-10 16:54 
I still can't seem to get it to work. I saved that RTF file as TXT and I also coded this to try to get it to work:

ofstream out("/Users/Dixon/test1.txt");
if (not out)
    perror("/Users/Dixon/test1.txt");
else {
    out << "1" << "2" << "3" << "4" << "5" << "6";
    out.close();

    ifstream in("/Users/Dixon/test1.txt");
    if (not in)
        perror("/Users/Dixon/test1.txt");
    else {
        int x(0);
        while (in >> x)
        {
            cout << x << '\n';
        }
        in.close();
    }

}


So I made it create a file with the words 123456 in it, close it then open it to read.. but it doesn't read!
GeneralRe: Reading files... Pin
Jacob Dixon20-Jan-10 17:00
Jacob Dixon20-Jan-10 17:00 
GeneralRe: Reading files... Pin
Jacob Dixon20-Jan-10 17:02
Jacob Dixon20-Jan-10 17:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.