Permissions work........... I have a page now that loads a cfg file from the
disk and puts it in a textbox control. This works great. I then have a save
changes button that will save the contents of the textbox back to the file.
The problem is that I make changes and save and when you check the file it's
the same. I have looked on the disk and the date and time change so it is
writing it but apparently no the edited changes. Here is the code.



Opening routine.
            
            Dim FILE_NAME As String = "D:\server.cfg"

            Dim objReader As New System.IO.StreamReader(FILE_NAME)

            ServerCFG.Text = objReader.ReadToEnd

            objReader.Close()


Saving Routine

        Dim fs As FileStream = File.Create("D:\server.cfg")
        Dim sw As StreamWriter = New StreamWriter(fs)
        sw.Write(ServerCFG.Text)
        sw.Close()
        fs.Close()


As I said it all works and even shows that the file has been saved but the
things I changed in the textbox don't seem to be there.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hcoj73i/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123626055/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to