Results 1 to 4 of 4

Thread: Help Me Please!!!

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help Me Please!!!

    how do i open up a new text file. i have a html page and i want to type in codes which wil grab data from another txt file (newsflash.txt).
    Can some one help me wit the codes please...

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    You can go for server-side includes, if your server supports them. Ask your Webmaster if this is the case, and if so, what the exact syntax is for your server.

    If you use any server side scripting using ASP, PHP, Perl or Python to generate your webpages dynamically, you can use the include command to dynamically include other files.

    And i think this item can be done using AJAX scripting too.

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help me please!!!

    hi sorry...actually i am using visual studio.net 2005 and im suppose to read another .txt file.
    here is my code

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
    </body>
    </html>

    i want to put code inbetween which could read n display my text file ("newsflash.txt")

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    As I don't know much about C# it is difficult for me to comment about this. But you can checkout the following links where they've stored the source code for doing a file reading using VB and C#

    http://aspalliance.com/cookbook/View...spx?Chapter=17

    http://aspalliance.com/cookbook/View...ecipeType=ASPX

    hope this will help you

    Plz remember that this is not an HTML issue but a server-side scripting issue which comes in this site under Other forum which is used to discuss any kind of scripting issues.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •