Re: CFile

Tech-Archive recommends: Speed Up your PC by fixing your registry



Ok Guys !!

I accept yours comments and It's working very good.
Thank You very much again !!
German Medina
+519-662-8500
++++++++++++++++++++++++++++++++++++++++++++++++++++

"Scot T Brennecke" wrote:

> Also, don't be confused into thinking that Format of the display variable will change your Ca or Cb
> variables.
>
> "German" <German@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:ADFDC433-8267-4CDD-8C47-9CFB246B4DC3@xxxxxxxxxxxxxxxx
> > Hi Team:
> >
> > I have the next code :
> >
> > CFile fsal1;
> > CString Ca="Line 1",Cb="Line 2",display="";
> > fsal1.Open ("C:/100.Log",CFile::modeCreate | CFile::modeWrite);
> >
> > display.Format("%s\r\n",Ca);
> > fsal1.Write (Ca,Ca.GetLength());
> >
> > display.Format("%s\r\n",Cb);
> > fsal1.Write (Cb,Cb.GetLength());
> >
> > fsal1.Close();
> >
> > ANd the results is : Linea 1Linea 2 (together)
> > If I want to write "Line 2" under "Line 1" What do I need to adjust ?
> >
> > ANy other suggestion are welcome !!
> >
> > German Medina
> > +519-662-8500
>
>
>
.



Relevant Pages

  • Re: Mac Address
    ... "Scot T Brennecke" wrote: ... > the value of the MACAddress property. ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: Copying Files with CFile
    ... readed write it into dest file... ... > CFile fent1; ... >>> German Medina ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Mac Address
    ... Good Afternoon Team: ... What are the steps to get MAC Address from VisualC6.0? ... German Medina ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • ASCII characters
    ... How can I get the ASCII code of some character? ... German Medina ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: CString:Mid
    ... I do not know for what reason, but it works looking this way: ... assign a variable to the result of the comand MId, ... > German Medina ... Prev by Date: ...
    (microsoft.public.vc.mfc)