Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 10th, 2006, 04:32 AM
Authorized User
Join Date: Apr 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to al-hijjawi
Default Problem : Write to txt file

hello every body
in my project i must to read and write from txt file according the content of text box (txtNotes) and when a command button(save) is clicked
 when i try to write to txt file the problem is happen
the problem is when i click the save button no any change occured in the file (i.e there are not save)
and there are my code in the save button :
 Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles save.Click
        Dim filename As String
        filename = Server.MapPath("Notes.txt")
        Dim writer As New StreamWriter(filename, False, System.Text.Encoding.Unicode)
    End Sub
and thanks:)

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP write to txt file dizzy1 Classic ASP Basics 7 June 15th, 2010 10:38 PM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
write values to txt file in server eresina Javascript 7 July 19th, 2005 08:23 AM
write values to txt file in server eresina Javascript How-To 1 July 19th, 2005 05:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.