answersLogoWhite

0


Best Answer

$foo = fopen("time.txt", "r");

// You can then use $foo as the file handle to read from:

while(!feof($foo)){

$bar = fgets($foo);

echo $bar;

}

/* although php will close the file automatically when no longer in use, it is a good practice to close it yourself when you're done with it: */

fclose($foo);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

fopen("time.txt","r");b open("time.txt");

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the correct way to open the file time.txt as readable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Word gets the error File conversion Macros dot Select the encoding that makes your document readable?

whay not open error file in word ! help me please


Is it true file type must be associated with the correct application in order to open?

Most of the time if you first open the correct application, you can then use it to open a file that is of the correct format, even if the file type is not correctly associated with the extension. On the other hand if you click directly on the file and the file type is not associated with the correct application, it usually will not open - or at the very least will give you weird results when it opens up with the wrong application.


What process do you have to follow to open a file created in the 2010 version od 3ds max software?

Ensure you have the correct version of the software to open the file. If you do not have the correct version, you can look on the Internet for various file converters that will convert the file format you have to the file format you need. When you have the correct software installed on your software, you can double-click on the file and it will open in the application. Or, you can open the application first and go to the menu option that lets you find and open files.


What is the file extension of a writer file?

File extension in Open office writer is Auto Correct


When you double click a file it will not open but instead it will ask you if you want to delete that file and if you chose no it will repeat several times. What can be the solutions?

Try a right click to see the "properties" of the file. It may not be a readable document.


What is the reason of ms office file can not open?

There are many reasons that a file cannot be opened. The most common one is if you are trying to open a file of a certain type with the wrong kind of application. So for example, you cannot open a spreadsheet file with a graphics program. So it is important to open the file with the correct application and the correct version of that application.


When opening any pdf file on the computer it opens in notepad as a series of unreadable letters and numbers How do you go about opening the pdf file so it is readable?

right click on it, select "open with" select adobe acrobat reader from the list provided, and it should open in a readable format. You must have adobe acrobat reader installed in your pc, you may download it from adobe website if you don't have it.


What do you do if you cant access a file in Open Office Writer?

It depends what you mean by 'cant access'. a) If your computer crashed while a file was open - Open Office should automatically attempt to recover the file next time you open it. b) If the file is locked by a password - you need to enter the correct password to open it.


Photoshop is not the correct program to open the php files How can you remove it to use the correct file?

Assuming you're talking about incorrect default file associations in Windows XP... Right click on the PHP file. Go to Open With > Choose Program. Select Wordpad or your fav PHP IDE and tick the "Always open this type of file with this program" box.


What program do I need to open null file?

A "null" extension usually means that the file contains no data or is corrupted and/or was corrupted during the transmission of the file.Windows cannot open this file because it does not know what the format is. There are a few software applications available to possibly convert the "null" to something readable, but those cost money and have only one purpose.The best bet is to have the person who sent you that file resend it in another format ... possibly as a PDF as that seems to be a good universal application that most everyone can access.


how to open a file?

How to open a dxl file?


What are BMP pros and cons?

Pros: uncompressed, no quality loss, almost "readable" (you can open it in a text editor and manipulate individual pixels) Cons: huge file size (long loading times and large memory requirements)