They're aren't any stupid people here.<br><br>Make a form with 2 text boxes on it: Text1 and Text2. Add the following code in a command button click event, start the program, type some words in Text1 and click the button.<br><br>ff = FreeFile<br>Open "MyFile.Txt" For Binary As #ff<br>Put #ff, , Text1.Text<br>Close #ff<br><br>'We've just written the contents of Text1 to a file.<br><br>ff = FreeFile<br>Open "MyFile.Txt" For Binary As #ff<br> 'In order to read the entire file in one pass we'll have to place it in a buffer large enough to hold it.<br> Do that with LOF.<br>Fbuffer$ = String$(LOF(ff), 0)<br>Get #ff, , Fbuffer$<br>Close #ff<br>Text2.Text = Fbuffer$<br><br>Text2 will contain the same text as Text1.<br><br>Hope that helps.<br> <p> <br><a href=mailto: > </a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.