aspose file tools*
The moose likes C / C++ and the fly likes I want a char pointer to point to a string entered by user at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » C / C++
Bookmark "I want a char pointer to point to a string entered by user at runtime" Watch "I want a char pointer to point to a string entered by user at runtime" New topic
Author

I want a char pointer to point to a string entered by user at runtime

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 319

This is my code



But its not working , How to do that.


http://www.mahtabalam.net , Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Try this stackoverflow link. You need to give the pointer a length before you can read anything into it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want a char pointer to point to a string entered by user at runtime