![]() | Download Help (Windows Only) |
Owning Class: string
Requires: MathScript RT Module
c = strread(a)
c = strread(a, '', n)
c = strread(a, '', option, optionvalue)
c = strread(a, '', n, option, optionvalue)
[c1, c2, ...] = strread(a, format)
[c1, c2, ...] = strread(a, format, n)
[c1, c2, ...] = strread(a, format, option, optionvalue)
[c1, c2, ...] = strread(a, format, n, option, optionvalue)
Reads data from an input string according to the format and option you specify.
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
a | Specifies the string to read. | ||||||||
format | Specifies the pattern to read. format must use appropriate format specifier syntax. | ||||||||
n | Specifies the amount of formatted data to read. | ||||||||
option, optionvalue | Specify how to treat the characters in a. option is a string that accepts the following values.
|
Name | Description |
---|---|
c, c1, c2, ... | Return the formatted data from the input string. |
The number of output parameters must equal the number of items in format. If you specify '' instead of format, this function uses '%f' as the default pattern to read.
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
str = sprintf('a, 1, 2\nb, 3, 4\n')
[c1 c2 c3] = strread(str, '%s%d%d', 'delimiter', ',')
Helpful
Not Helpful