????????????????????????????????????

  • Thread starter Thread starter sahel
  • Start date Start date
S

sahel

hi ;
who knows how i could make FILE in console application;
plz say to me how i could write a code for it
thanks ...
 
sahel said:
hi ;
who knows how i could make FILE in console application;
plz say to me how i could write a code for it
thanks ...
.

There are many ways to do that. If the string is short, my preferred way is:

File.WriteAllText("SomeFileName.txt", "Stuff to write to the file.");

Mike
 
There are many ways to do that. If the string is short, my preferred way is:

File.WriteAllText("SomeFileName.txt", "Stuff to write to the file.");

It is probably the one with least code, but I have always considered
those high level methods in File to be way too FSO'ish.

Arne
 
It is probably the one with least code, but I have always considered
those high level methods in File to be way too FSO'ish.

Really? I absolutely love Read/WriteAllBytes().
 
Different people have different ideas about what looks good.

Consider that in the VB6 world I came from, the FSO is persona non grata
among the old-timers, so I never had any dealings with it and developed no
aversion to it.
 
Back
Top