Hi i am currently creating a Textctrl box and am looking to read in values from a file, I dont want to display everything in the file at once i.e using the function Load file
I would like to be able to read in either a line or single values if possible and store them in a variable which i can then use to display in the text box as i need to
Thanx in advance
Ste
How do you read in values from a file Topic is solved
Depends. If the file isn't too big maybe wxTextFile could be of use.
http://docs.wxwidgets.org/stable/wx_wxt ... wxtextfile
http://docs.wxwidgets.org/stable/wx_wxt ... wxtextfile
Hi,
wxFFile leaves you doing all the work. wxTextFile would be fine for adding lines, but doesn't help with shorter strings or other values.
Your best choice would be wxTextInputStream, which knows about all these things. http://docs.wxwidgets.org/stable/wx_wxt ... tream.html
Regards,
David
wxFFile leaves you doing all the work. wxTextFile would be fine for adding lines, but doesn't help with shorter strings or other values.
Your best choice would be wxTextInputStream, which knows about all these things. http://docs.wxwidgets.org/stable/wx_wxt ... tream.html
Regards,
David