Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReading from a text file __ help me__ Pin
Scozturk24-Mar-03 4:11
professionalScozturk24-Mar-03 4:11 
GeneralRe: Reading from a text file __ help me__ Pin
jhwurmbach24-Mar-03 4:26
jhwurmbach24-Mar-03 4:26 
Generalnormalizing pathnames Pin
berndg24-Mar-03 4:04
berndg24-Mar-03 4:04 
GeneralRe: normalizing pathnames Pin
PJ Arends24-Mar-03 5:14
professionalPJ Arends24-Mar-03 5:14 
GeneralRe: normalizing pathnames Pin
berndg24-Mar-03 6:04
berndg24-Mar-03 6:04 
GeneralRe: normalizing pathnames Pin
PJ Arends24-Mar-03 10:31
professionalPJ Arends24-Mar-03 10:31 
QuestionClear file contents with fstream? Pin
Rickard Andersson2024-Mar-03 3:34
Rickard Andersson2024-Mar-03 3:34 
AnswerRe: Clear file contents with fstream? Pin
Nick Parker24-Mar-03 3:44
protectorNick Parker24-Mar-03 3:44 
Rickard Andersson wrote:
How can I clear a file with fstream?

I've opened my file with append flag, so I can't do:


Why not just close the file and re-open it with ios::trunc? .... I suppose there is probably a faster way.Roll eyes | :rolleyes:





-Nick Parker


The true measure of a man is how he treats someone who can do him absolutely no good. - Samuel Johnson



GeneralRe: Clear file contents with fstream? Pin
Rickard Andersson2024-Mar-03 3:52
Rickard Andersson2024-Mar-03 3:52 
AnswerRe: Clear file contents with fstream? Pin
Ted Ferenc24-Mar-03 12:41
Ted Ferenc24-Mar-03 12:41 
GeneralRe: Clear file contents with fstream? Pin
Rickard Andersson2024-Mar-03 21:54
Rickard Andersson2024-Mar-03 21:54 
GeneralRe: Clear file contents with fstream? Pin
Ted Ferenc25-Mar-03 8:51
Ted Ferenc25-Mar-03 8:51 
Generalproblem with message box Pin
r i s h a b h s24-Mar-03 2:22
r i s h a b h s24-Mar-03 2:22 
GeneralRe: problem with message box Pin
valikac24-Mar-03 11:15
valikac24-Mar-03 11:15 
GeneralRe: problem with message box Pin
John R. Shaw24-Mar-03 11:31
John R. Shaw24-Mar-03 11:31 
GeneralRe: problem with message box Pin
r i s h a b h s24-Mar-03 22:18
r i s h a b h s24-Mar-03 22:18 
GeneralRe: problem with message box Pin
John R. Shaw25-Mar-03 8:54
John R. Shaw25-Mar-03 8:54 
Generalmultithreading Pin
summo24-Mar-03 1:38
summo24-Mar-03 1:38 
GeneralRe: multithreading Pin
Ravi Bhavnani24-Mar-03 2:08
professionalRavi Bhavnani24-Mar-03 2:08 
Generalaccessing union inside struct Pin
M. Agamawi24-Mar-03 1:20
M. Agamawi24-Mar-03 1:20 
GeneralRe: accessing union inside struct Pin
_Theo_24-Mar-03 1:43
_Theo_24-Mar-03 1:43 
GeneralRe: accessing union inside struct Pin
M. Agamawi24-Mar-03 1:48
M. Agamawi24-Mar-03 1:48 
GeneralRe: accessing union inside struct Pin
_Theo_24-Mar-03 2:03
_Theo_24-Mar-03 2:03 
GeneralRe: accessing union inside struct Pin
Anonymous24-Mar-03 2:14
Anonymous24-Mar-03 2:14 
GeneralRe: accessing union inside struct Pin
jbarton24-Mar-03 3:50
jbarton24-Mar-03 3:50 

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.