String to char*

  • Thread starter Thread starter Jeff Collett
  • Start date Start date
J

Jeff Collett

Hi,
How do I convert from a .NET String to a char *?
I am reading in a file using the OpenFileDialog() with a
System::IO::StreanReader(). The reader easily puts the file data into a
String, input = sr->ReadToEnd(). I really need to get this input(String)
into a char *. Cannot find any method that does that.

Thanks
Jeff
 
Not sure if this helps you in C++, but in C# you can use input.ToCharArray()
 
Back
Top