473,699 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inputing "==" in opened text files

22 New Member
hi.. can you plz help me... i want to put an "==" in my opened text files but i don't know how.. i will show you the original output and my own program..

-----------------------------------------------------------------------------------------
= original output =

Volume in drive C has no label.
Volume Serial Number is ACF3-92D1

Directory of C:\Documents and Settings\Hitosh i Hyoda

2007/09/08 == 12:45 == <DIR> == .

2007/09/08 == 12:45 == <DIR> == ..

2007/03/01 == 16:52 == 290 == 1.txt

2007/04/24 == 07:03 == <DIR> == ChikkaDefault

2007/11/20 == 08:16 == <DIR> == Desktop

2007/11/16 == 16:56 == <DIR> == Favorites

2007/06/01 == 07:56 == <DIR> == logs

2007/11/19 == 17:00 == <DIR> == My Documents

2007/11/20 == 07:01 == 4 == pid.txt

2007/11/20 == 07:01 == 152 == PluginManager.l og

2007/06/14 == 12:02 == 23 == presets.ini

2007/09/08 == 12:45 == <DIR> == Saved Games

2007/11/19 == 12:44 == <DIR> == Start Menu

2006/09/26 == 00:31 == <DIR> == WINDOWS

4 File(s) 469 bytes
10 Dir(s) 5,583,568,896 bytes free

-----------------------------------------------------------------------------------------
and this is my program/php code...

-----------------------------------------------------------------------------------------

=php code=
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. $fc = "Check.txt";
  4. $handle = fopen($fc,"r");
  5. $content = fgetss($handle, 4026);
  6. $cont = htmlspecialchars(file_get_contents($fc));
  7. echo "<pre>".$cont."</br></pre>";
  8.  
  9. fclose($handle);
  10. ?>
  11.  
--------------------------------------------------------------------------------

hope you can help me.. thanks!..
Nov 29 '07 #1
0 1025

Sign in to post your reply or Sign up for a free account.

Similar topics

145
6288
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two programs: /*** a.c ***/
6
2178
by: gizmo | last post by:
I have a requirement to initiate more than one instance of an application using the filenames. (the example below will start two instances of MS Word). My problem is that I need to kill each instance individually, but this does not appear possible using the Process object. When I run the example below the process object "p" can be viewed using Quick Watch however process object p2 is displayed as undefined, with the added affect of not...
1
1834
by: Stinky Pete | last post by:
Hi, With thanx to the group and suggestions to review other news sites, I've got some code that allows me to open Adobe from Access. As I am new at this, I still need some help though. The code to get Abobe to open is working really well, however the referenced file I need is not being opened. I've tried the path that I've got in the text box via the cmd prompt and copying the path in Windows Exp and the path does work. Any...
5
18474
by: Matthew Zhou | last post by:
I check the ISO 9899 standard, \r (carriage return) Movesthe active position to the initial position of the current line. What does it do? How to input? I tried to use Flex to check this pattern as below: %%
25
20555
by: tekctrl | last post by:
Anyone: I have a simple MSAccess DB which was created from an old ASCII flatfile. It works fine except for something that just started happening. I'll enter info in a record, save the record, and try to move to another record and get an Access error "Record is too large". The record is only half filled, with many empty fields. If I remove the added data or delete some older data, then it saves ok and works fine again. Whenever I'm...
9
2916
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading the text files from the watched folder line by line into variables and then posting them to a SQL table. All of the code for the form is shown below. And it works fine except for 2 issues. First issue: In the Finally of the Try for teh SQL...
15
3176
by: =?ISO-8859-15?Q?L=E9na=EFc?= Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, For some reasons, somewhere in a program, I'd like, if possible, to quickly parse a whole file before rewinding it and letting the full analysis start. My problem is that the FILE* I want do parse has been fopen'ed far away from where I am and I don't know in which MODE my FILE* has been opened. And additionally, my FILE* may not be a regular file, but a continuous
4
3185
by: chazzy69 | last post by:
The problem is as follows, i am inputing text and images from another source via my php script, now when i try to display the text and images into a page of my own styling the text and images skewed the page speciffically the table cell it is contained within. First i thought that it was just a problem with the images so i just reduced the size of them but now it seems the text is somehow managing to stretch the cell. So i tried limiting...
5
2797
renji1981
by: renji1981 | last post by:
Hello I need to implement a textbox or a fiels where i can insert text and add certain function that MS word supports like TEXT FORMATTION ( FONT , STYLE _ ETC IN A WINDOWS FORM USING c# . just like the new thread box in bytes for inputing text.. can someone help me out ..
0
8704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9192
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7781
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.