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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top