Question about Operating Systems

1 Answer

How do you check a Text File is empty or not in vb6.0

Hi friends

i am using vb6.0 file systems objects in that i want to know a file is having data or not how do you check that please hlep me urgent.

Posted by on

  • Dskvelan Nov 07, 2008

    it is very much useful for me


1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.


    An expert who has achieved Level 3.

  • Master
  • 404 Answers

Here is a script that shows you how to do this

On Error Resume Next
Dim fso, s
Set fso = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1
Set ts = fso.OpenTextFile("c:\testfile.txt", ForReading)
s = ts.ReadAll
if len(s) = 0 then
msgbox "File is Empty"
msgbox len(s) & " " & s
end if

Posted on Nov 07, 2008

  • Cosma Papouis
    Cosma Papouis Nov 08, 2008

    It would be useful to me if you graded this as a fixya.



Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

Word .doc vanished

When a Word document file is corrupted, then you can try several methods to recover it:
1. First of all, you can try the recovery function integrated with Microsoft Word, as follows:
1) On the File menu, click Open.
2) In the Look in list, click the drive, folder, or Internet location that contains the file that you want to open.
3) In the folder list, locate and open the folder that contains the file.
4) Select the file that you want to recover.
5) Click the arrow next to the Open button, and then click Open and Repair.
The "Recover Text from Any File" converter has limitations. For example, document formatting is lost. Additionally, graphics, fields, drawing objects, and any other items that are not text are lost. However, field text, headers, footers, footnotes, and endnotes are retained as simple text.
1. In Word 2007, click the Microsoft Office Button, and then click Open.
2. In Word 2010, click the File Menu, and then click Open.
3. In the Files of type box, click Recover Text from Any File(*.*).
4. Click the document from which you want to recover the text.
5. Click Open.
After the document is recovered by using the "Recover Text from Any File" converter, there is some binary data text that is not converted. This text is primarily at the start and end of the document. You must delete this binary data text before you save the file as a Word document.
Here's something to look at:;en-us;87856

I have had great success with the Word Recovery Toolbox application from
They have a free version you can try. I would suggest you run the deep scan in order to get the best data set to look through.

Try also to restore the file using this online service. I found it in Google.

Apr 10, 2016 | Operating Systems


Adequate Email Recovery Software to convert ost files into pst formats

<b>Offline storage table file to personal storage table file converter by Recover Data is one of the best email conversion tools, which helps in recovering Exchange offline folder, lost or damaged due to viruses, system failure, termination of Outlook email client, power failure, network errors, Exchange Server inconsistency, and due to file size errors. This software is built upon the breakthrough scanning and conversion techniques, which helps in repairing MS Outlook data file. The software is even capable of repairing or restoring files protected through a password, or are orphaned. No matter, what is cause for inaccessibility or deletion is, this software proves worthy. Technical expertise is not at all required to commence the recovery process. Even a layman can make this software run, by following the pre-guided steps. Each of the Outlook file is restored along with its objects, such as notes, attachments, journals, calendars, contacts. Even accidentally email files gets successfully recovered.<br><br></b><b>This <a href="">email conversion program</a> features a rich user interface, which offers swift platform for recovery. The complete conversion process occurs with the fastest speed, and that too without compromising with the file sequencing. Therefore, HTML, RTF, and Text emails are restored with same formatting. It offers multiple Outlook file conversion in just one go, and is compatible with all the versions (oldest and latest both) of MS Exchange Server and MS Outlook (32 and 64 bits). All the converted data is saved into a location provided by the users. Importantly, this software offers preview of all the converted email data along with its objects in a tree like pattern. A user is supposed to select the required email files to restore.<br>Demo edition of this email file converter is offered by <a href="">Recover Data</a>. This demo version gives crystal clear understanding about the recovery process, features and software feasibility. Once getting complacent with the demo performance, invest into its full edition. <br></b>

on Aug 27, 2013 | Recover Data for OST to PST

4 Answers

How to recover Excel lost file

How to solve some troubles with excel files you may learn from-

How to Recover an Excel File for Free

1.Check the Recycle Bin--if you've accidentally deleted the file, it should still be there unless you've emptied the bin, and you can click on the file and recover it.

2.Use the Auto Recovery Pane when you open Excel. Review the document recovery pane. If Excel has managed to recover your file, it will show in a separate pane on the left-hand side. Identify your document in the pane, then click on it and choose "Open" to open the recovered file.

3.Try manually repairing the file. Click on "File" in Excel 2003 or the "Office" button in
Excel 2007, then select "Open" and click on the arrow next to the "Open" button. Click on
"Open and Repair" and choose from two options: click on "Repair" if you want to try to completely recover the file, or click on "Extract Data" if you previously tried Step 1 and it did not work.

4.Search for the file manually on your computer. When performing a system search (click "Start" and select "Search" in Windows XP and Windows 2000, or press the "Windows" button and "F" key in Windows 7 and Vista), make sure you choose "Advanced Search Options" and then check the "System and hidden files" check box. You may be able to find your missing or corrupted file using this search: double-click on the file name in the search results to open it.

If nothing can help you, look at Excel Repair Toolbox

As a solution, it costs money, but effective-

Nov 11, 2014 | Microsoft OFFICE 2013 PROFESSIONAL 1 PC...

2 Answers

All my programs open up as a LNK file how do I fix that

Yes, go to one of the files that you KNOW what type of file it is like a xxxxx.PDF. that file opens with adobe then "right click" to open the menu of choices with that file. EXAMPLE "xxxxx.PDF" and select the menu choice "OPEN WITH"
A new menu box will open and you should be able to select the correct program to open the file with, i.e. "ADOBE READER" for the .PDF files. (BE CAREFUL), usually in the bottom left corner of this menu screen there will be a small check box with the question "open all files like this/or type" using this program. If you only use ADOBE for PDF files which you probably do then it's ok. BUT if it is a plain text file or a binary file that has been set to be opened with something else then you have more serious issues to fix.
The same is with MS Word files Power Point ect. select the appropriate program under "open with" to correct the file relationship

Mar 26, 2014 | Microsoft Windows 7 Ultimate, Full Version...

4 Answers

How to recover corrupted files from my computer

Maybe you can try uFlysoft Data Recovery for Mac, it can recover empty trash on Mac only in three steps:
Step 1. Launch the software to scan the device where your files deleted
Step 2: Preview the scan result files and make mark if it is the one you find
Step 3: Recover files

Jul 30, 2012 | Microsoft Windows XP Professional

4 Answers

How to recover files in recycle bin

Do you mean that you have dragged files in the Recycle Bin and emptied the bin? If so, chances of file recovery still exist as long as the data contained in the files are not overwritten. Learn this article restore files emptied from Recycle Bin for more info. Best regards.

Jul 29, 2011 | Operating Systems

8 Answers

I have deleted my texts that really important that i need for a court case.

For someone who has little knowledge on computer like me, I usually prefer to getting help with some pro programs, such as this data recovery program.
or u can visit where I find many guides in detail there.
Hope it can help u. Good luck.

May 12, 2011 | Operating Systems

1 Answer

I am using Serif Draw Plus x4. Having completed the line drawing, I now want to copy it and paste it to a text box in a Word doc. What's the quickest way to do this, please? Richard Royds

Well follow my lead :

1. Click on insert tab .
2. Select the object option.
3. If you have to display the content select object menu item.
4. A drop down list will open select the serif plus program if visible if not then you can only link the file.
5. now a browse file dialogue box will open select your file that is to be shown.
6. that's it enjoy.

easier method.

1. install Ashampoo magical snap( takes screen shots from your desktop)
2. take the screenshot of your file and save it as a picture.
3. now i guess you know how to display a picture in a word document

have fun :)

vote if solved

Feb 16, 2011 | Serif Operating Systems

2 Answers

Nono no help help help

To recover that file you can use the software named recova.

Jun 15, 2009 | Microsoft Windows XP Professional SP2 for...

1 Answer

OS X 10.4 PHP MySQL problem

To change the location where MySQL creates its socket file, do this:
1. Open your preferred text editor and create a plain text file.
2. Type this text (on two lines as shown):

3. Save the file as: /etc/my.cnf

To change the location where PHP looks for the socket file, follow these steps:
1. In Terminal: sudo cp /etc/php.ini.default /etc/php.ini
2. Open /etc/php.ini in your preferred text editor.
3. Find the [MySQL] section, and change the mysql.default_socket directive:
4. ; Default socket name for local MySQL connects. If empty, uses
5. the built-in
6. ; MySQL defaults.
7. mysql.default_socket = /var/mysql/mysql.sock
8. Change the permissions on /var/mysql so that www can read the socket, by executing this in Terminal:
sudo chmod 775 /var/mysql

Aug 24, 2008 | Apple Mac OS X 10.4

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

248 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides