Reading from text
-
how i can read data from textbox (notepad) which has alot of data by form in vb.net so 1- first i need to select the file 2- reading data 3- arrange data and store the arrangment data in sql
kilany
Mr kilany wrote:
how i can read data from textbox (notepad) which has alot of data by form in vb.net so 1- first i need to select the file 2- reading data
try this: http://www.vbforums.com/showthread.php?t=423925 It is coded in VS2005 but basically you need to import
open a stream and then make sure you close it after you finish reading. I am not sure what type of data is being read. I am unable to comment on storing/arranging part. If you want to ask the user for where the file is stored, use file dialogues. Hope that helps.
-
Mr kilany wrote:
how i can read data from textbox (notepad) which has alot of data by form in vb.net so 1- first i need to select the file 2- reading data
try this: http://www.vbforums.com/showthread.php?t=423925 It is coded in VS2005 but basically you need to import
open a stream and then make sure you close it after you finish reading. I am not sure what type of data is being read. I am unable to comment on storing/arranging part. If you want to ask the user for where the file is stored, use file dialogues. Hope that helps.
thanx alot man, the most important thing that the open and search function included in vb.net , may you give me the topic which is related to open textpad and reading data from it to let me you search engines, and if you have any links related to this supject please care for me, because i have a project which use VB>NET and should read from notepade and search some things inside it, thanx second time ........
kilany
-
thanx alot man, the most important thing that the open and search function included in vb.net , may you give me the topic which is related to open textpad and reading data from it to let me you search engines, and if you have any links related to this supject please care for me, because i have a project which use VB>NET and should read from notepade and search some things inside it, thanx second time ........
kilany
I am not sure what you are trying to do here. But if you are trying to read and write from/to text files then try the first two results from this search: http://www.google.co.nz/search?q=read+text+vb.net&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official Streamreaders/streamwriters are what you are after. Make sure that streams are closed after reading/writing.