how to read space in edit text box
Show older comments
Hello, I am working on implementation of blowfish encryption algorithm and it requires me to read data with spaces to be enciphered . Also, the enciphered text that is generated may have spaces , which has to be entered in a text box and will be deciphered later. So I need help to find a function or a block of code which can read even spaces and take the entire data written on the text box as one string.
Link to code
1 Comment
Geoff Hayes
on 10 Apr 2018
Mahek - are you suggesting that when you read the string from the edit text control that the spaces are not read? Please provide an example of what is happening?
My understanding is that spaces would be included. For example, if the user types "This is my sentence" into the edit text control, then doing
textValue = get(handles.edit1, 'String')
would return the full string. It may be a cell array so you would need to convert it to a char as
textValue = char(get(handles.edit1, 'String'))
Answers (0)
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!