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...
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...
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.
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")
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