Question about Computers & Internet

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

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Master:

    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
ts.Close
if len(s) = 0 then
msgbox "File is Empty"
else
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.



    Thanks

×

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

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:http://support.microsoft.com/default.aspx?scid=kb;en-us;87856
https://community.office365.com/en-us/f/172/t/269739

I have had great success with the Word Recovery Toolbox application from http://www.oemailrecovery.com/word_repair.html
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. https://onlinefilerepair.com/en/rtf-repair-online.html

Apr 10, 2016 | Computers & Internet

1 Answer

I recovered a 26kb text file with empty spaces, after formatting my hard disk of my laptop Windows 8.1. Can someone please say how to view /recover text from this file?


1,Launch the program, go to standard mode and choose raw file recovery
2, select the partition where you lost your file after system restored and start to scan
3,after the scan, preview and check the recoverable file and click to recover

May 23, 2015 | Computers & Internet

4 Answers

How do i fix ppt file? Please help


Hello. There are different methods available to recover corrupted PowerPoint files.
Open presentation in MS Word document
and follow this steps:
- Open MS Word.
- Click on Open button of File menu.
- Select Files of type box and navigate to your corrupt file, Open it.
Also you can try Recovery Toolbox for PowerPoint https://powerpoint.recoverytoolbox.com/
More information see here: http://www.filerepairforum.com/forum/microsoft/microsoft-aa/powerpoint/677-how-to-recover-powerpoint-file

Feb 05, 2015 | Microsoft PowerPoint for PC

9 Answers

Ms word 2007 file are corrupted how to recover it


One can easily repair MS Word file 2007 using third party software like word repair software. This software works efficiently to repair corrupted documents because it has inbuilt strong scanning algorithm.

Jan 03, 2013 | Computers & Internet

4 Answers

Recover Data for FAT and NTFS 2.0 cd key


For recovering data from FAT and NTFS file system of Windows OS download a data recovery software from http://www.freedatarecoverysoftware.org/
This software is able to recover data deleted from Recycle Bin as well as the data deleted using Shift+Del key.

Dec 19, 2012 | Computers & Internet

2 Answers

My Dane-elec 8GB USB has all of my pictures and documents on it carrying 4 years worth of information. Earlier i plugged it in everything was in some other language and my friend clicked defragment and now...


you might try a data recovery program there are plenty of free recovery programs on the internet

http://download.cnet.com/easeus-deleted-file-recovery/3000-2248_4-10867160.html
EASEUS Deleted File Recovery is a powerful and free file undeletion solution for Windows 2000, XP, 2003, Vista, 2008, Windows 7. It is capable to recover lost files even after a deletion or even when recycle bin has been emptied. It can undelete files on any valid logical disks visible by operation system. In the case of damaged disk volume or partition, please use EASEUS Data Recovery Wizard. EASEUS Deleted File Recovery is an easy-to-use program with a Graphical User Interface without technical skill requirement through the whole recovery process. Simply launch the software, specify the disk where lost data located, click "Next" button, all the deleted files will be listed. Bonus its free

http://download.cnet.com/data-recovery-assist/3000-2248_4-75104099.html
Data Recovery Assist allows you to recover lost, deleted, and formatted data on local and network drives, as well as removable drives. Data Recovery Assist supports Hard Disk, USB Drive, SD Card, MMC Card, Sony Memory Stick. Data Recovery Assist can recover deleted files emptied from Recycle Bin, lost data due to partition damaged, software crash, virus infection, unexpected shutdown or other unknown reasons. Data Recovery Assist provides a comprehensive data recovery solution for computer users to recover lost data. Data Recovery Assist Supports FAT16, FAT32, NTFS and other file system. Data Recovery Assist Supported all major file types, include text, exl, pdf, bmp, exe, html, jpg, avi, mp3, email, word and so on. You can preview deleted file before recover it. Operating System Support: Windows7, Windows Vista, Windows XP, Windows 2003 and Windows 2000 Release Note: 2009-10-28 Add deleted files written-over caution,It's very important! 20010-01-01 Update skin and support vista and win7


Sep 18, 2011 | Dane-Elec DaneElec 4GB USB Drive Copper...

2 Answers

I remove the bckd.sys accidentaly from the recycle bin... Who can i recover it? If I get the file from another PC with different license could it work?


Hi,

No, the bckd.sys file is specific to your version of the software. You would have to reinstall the software again.

There is nothing within Windows that will recover a deleted file after the recycle bin is emptied. So the use of a third party software must be used. The recycle bin is essentially a holding area. People often delete files accidentally which was one of the reasons why the recycle bin was created. It gives a file and a user a second chance.

When the recycle bin is emptied, the area occupied by the file or files is then marked available by the operating system. The file IS still there but there is no way to get to it.
There is no way to recover the file without third party software to help you.

Click on the link below and check out File Recovery 4, it's a free download and free to use. It just may recover your deleted file.
If it doesn't recover the file there are plenty of other free file recovery software out there, just Google free file recovery. >>>Link below.





http://www.softwarepatch.com/software/filerecovery.html





Please let me know if the software recovers the file or if you need anymore help.


Good luck.

Jan 14, 2010 | Dell Inspiron 1501 Notebook

3 Answers

Hi, I accidentaly deleted my favourite music file. How can I restore it?


There is a chance it can be found in your recycle bin. Other than that, here is a link to a utility you can download which should restore the file for you.

http://www.softperfect.com/products/filerecovery/

Please let us know if you get your file back. Thank you.

Sep 16, 2009 | Intel Motherboard

1 Answer

Create a MS Word Report


This from the Word Help files - search for Embed.

You can simply select an area in Excel copy it and paste it into your word document, but embedding allows the data in your Word document to be automatically updated as you change the figures in the Excel Worksheet.

From the Help pages:

You can insert objects (object: A table, chart, graphic, equation, or other form of information. Objects created in one application, for example spreadsheets, and linked or embedded in another application are OLE objects.) into a Microsoft Word document when you want to include information from files created in other Microsoft Office programs or in any program that supports linked objects (linked object: An object that is created in a source file and inserted into a destination file, while maintaining a connection between the two files. The linked object in the destination file can be updated when the source file is updated.) and embedded objects (embedded object: Information (object) contained in a source file and inserted into a destination file. Once embedded, the object becomes part of the destination file. Changes you make to the embedded object are reflected in the destination file.).
default.aspx?assetid=za060473201033 default.aspx?assetid=za060474651033 Embedded object
default.aspx?assetid=za060474661033 Linked object
default.aspx?assetid=za060474671033 Source file
For example, a monthly status report might contain information that is separately maintained in a Microsoft Excel worksheet. If you link (link: Used to insert a copy of information created in one program into a Microsoft Word document while maintaining a connection between the two files. When the information changes in the source file, the changes are reflected in the destination document.) the report to the worksheet, the data in the report can be updated whenever the source file (source file: The file that contains information that was used to create a linked or embedded object. When you update the information in the source file, you can also update the linked object in the destination file.) is updated. If you embed (embed: To insert information created in one program, such as a chart or an equation, into another program. After the object is embedded, the information becomes part of the document. Any changes you make to the object are reflected in the document.) the worksheet in the report, your report, or destination file (destination file: The file that a linked or embedded object is inserted into. The source file contains the information that is used to create the object. When you change information in a destination file, the information is not updated in the source file.), contains a static copy of the data.
default.aspx?assetid=za790050001033The differences between linked objects and embedded objects
The main differences between linked objects and embedded objects are where the data is stored and how you update the data after you place it in the destination file.
Linked objects When an object is linked, information is updated only if the source file is modified. Linked data is stored in the source file. The destination file stores only the location of the source file, and it displays a representation of the linked data. Use linked objects if file size is a consideration.
Linking is also useful when you want to include information that is maintained independently, such as data collected by a different department, and when you need to keep that information up-to-date in a Word document.
When you link to an Excel object, you can use the text and number formatting from Excel, or you can apply the formats supplied by Word. If you use the Word formats, you can preserve formatting when the data is updated. For example, you can change table layout, font size, and font color without losing those changes once the object in the source file is updated.
Embedded objects When you embed an object, information in the destination file doesn't change if you modify the source file. Embedded objects become part of the destination file and, once inserted, are no longer part of the source file.
Because the information is totally contained in one Word document, embedding is useful when you want to distribute an online version of your document to people who don't have access to independently maintained worksheets.
default.aspx?assetid=za790050001033Edit and update linked objects
To edit a linked object in your document, use the Links command on the Edit menu.
By default, linked objects update automatically. This means that Word updates the linked information every time you open the destination file or any time the source file changes when the destination file is open.
If you prefer, you can change a linked object's setting so that the linked object is updated only when you choose to manually update it.
To ensure that your document is always up-to-date, you can also update linked objects whenever you print the document.
To prevent updates, you can lock individual linked objects. When you lock a link, Word uses the last information available from the source file.
You can also permanently break the connection between a linked object and its source file.
default.aspx?assetid=za790050001033Edit embedded objects
To edit an embedded object, double-click it, and then make changes to it in the source program (source program: The program used to create a linked object or embedded object. To edit the object, you must have the source program installed on your computer.). If you don't have the source program, you can convert the embedded object to the file format of a program you do have.

Apr 13, 2008 | Microsoft Office Professional 2007 Full...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

253 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

100243 Answers

David Payne
David Payne

Level 3 Expert

14160 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...