Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCeateProcess Pin
Imtiaz Murtaza26-May-05 5:12
Imtiaz Murtaza26-May-05 5:12 
GeneralRe: CeateProcess Pin
skornel26-May-05 6:39
skornel26-May-05 6:39 
GeneralSetting up hooks to monitor Webpage controls in IE Pin
m_ramesh3126-May-05 5:01
m_ramesh3126-May-05 5:01 
GeneralRe: Setting up hooks to monitor Webpage controls in IE Pin
Shog926-May-05 12:20
sitebuilderShog926-May-05 12:20 
GeneralRe: Setting up hooks to monitor Webpage controls in IE Pin
Waleed Eissa26-May-05 13:09
Waleed Eissa26-May-05 13:09 
GeneralRe: Setting up hooks to monitor Webpage controls in IE Pin
ThatsAlok26-May-05 18:25
ThatsAlok26-May-05 18:25 
GeneralOLEDB Decimal Seperator Wrong! Pin
Chris Ulliott26-May-05 4:40
Chris Ulliott26-May-05 4:40 
GeneralReading a file Pin
Andrew Admire26-May-05 4:37
Andrew Admire26-May-05 4:37 
I was able to create the file larger than 4 Gb. However, I want to be able to read the last line to see where it stopped. This code outputs the whole file but works when the file is less than 4Gb. What's wrong?

Thanks,

ifstream inClientFile ("diction.txt", ios::in);
inClientFile.seekg(-10, ios::end);

char w[30];

while (inClientFile>>w)
output(w);

void output(const char * const w)
{
cout<
GeneralRe: Reading a file Pin
toxcct26-May-05 4:45
toxcct26-May-05 4:45 
GeneralRe: Reading a file Pin
Andrew Admire26-May-05 5:10
Andrew Admire26-May-05 5:10 
GeneralRe: Reading a file Pin
Andrew Admire26-May-05 9:26
Andrew Admire26-May-05 9:26 
GeneralRe: Reading a file Pin
ThatsAlok26-May-05 21:40
ThatsAlok26-May-05 21:40 
GeneralRe: Reading a file Pin
Andrew Admire27-May-05 3:41
Andrew Admire27-May-05 3:41 
GeneralAddSlashes Pin
talkster526-May-05 3:42
talkster526-May-05 3:42 
GeneralRe: AddSlashes Pin
David Crow26-May-05 3:55
David Crow26-May-05 3:55 
GeneralRe: AddSlashes Pin
talkster526-May-05 4:16
talkster526-May-05 4:16 
GeneralRe: AddSlashes Pin
John M. Drescher26-May-05 4:26
John M. Drescher26-May-05 4:26 
GeneralRe: AddSlashes Pin
talkster526-May-05 4:30
talkster526-May-05 4:30 
GeneralRe: AddSlashes Pin
Ravi Bhavnani26-May-05 4:36
professionalRavi Bhavnani26-May-05 4:36 
GeneralRe: AddSlashes Pin
John M. Drescher26-May-05 4:48
John M. Drescher26-May-05 4:48 
GeneralRe: AddSlashes Pin
toxcct26-May-05 5:02
toxcct26-May-05 5:02 
GeneralRe: AddSlashes Pin
David Crow26-May-05 4:50
David Crow26-May-05 4:50 
GeneralRe: AddSlashes Pin
toxcct26-May-05 4:27
toxcct26-May-05 4:27 
GeneralRe: AddSlashes Pin
talkster526-May-05 8:12
talkster526-May-05 8:12 
GeneralVideo Pin
Usman Tasleem Akshaf26-May-05 3:29
Usman Tasleem Akshaf26-May-05 3:29 

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.