Questions tagged [file-length]
8 questions
401
votes
11 answers
How to check whether a file is empty or not
I have a text file. How can I check whether it's empty or not?

webminal.org
- 44,948
- 37
- 94
- 125
1
vote
1 answer
CStdioFile cannot work with files larger than 2GB?
I am using Visual C++ 2008. In VC++ 2008, CFile supports 2^64 huge files. So I think CStdioFile should also support.
However, when using CStdioFile::GetLength() on a file larger than 2GB, I get a CFileException, below is the code snippet:
void…

alancc
- 487
- 2
- 24
- 68
1
vote
2 answers
How to check the length of file which is inside the zip file
I want to check files inside the zip are not empty. I know the unzip -l command but it gives lot of information.
[abc@localhost test]$ unzip -l empty_file_test.zip
Archive: empty_file_test.zip
Length Date Time Name
--------- …

Aniket Kulkarni
- 12,825
- 9
- 67
- 90
0
votes
3 answers
How to obtain the length of a file
I am trying to run a simple C program that takes a file of random floating point values, automatically identify the length of the file and use the length to perform further computation. However, my compiler either hangs or I get erroneous results.…

Afro77
- 3
- 1
0
votes
3 answers
How can I check the length of the python code?
Is there a method to check the length of the CURRENT full code?
Similar to this:
#The file is the current code, not an another
file = open("main.py", "r")
length_in_lines = file.linelength()
length_in_characters = file.chars()
If you know a similar…

Balla Botond
- 55
- 11
0
votes
1 answer
Identify root folders which have files with length more than 250 characters?
I am a newbie Python beginner. Need help with a code to output all folders in my D drive of my Windows 10 machine which have files (sub-folders -> subfolders etc) which has length more than 250 characters.
I have subscribed for cloud backup of a…

Abhishek SIngh
- 1
- 1
0
votes
0 answers
moving folders between 2 SharePoint 2010 sites using robocopy
I am trying to move a series of folders between two SharePoint 2010 sites but am not able to do so because the file paths are too long. I read online that robocopy might be able to solve the problem but can't quite get it to work.
I have mapped both…

Gandalfrandalf
- 227
- 1
- 5
- 16
0
votes
0 answers
VS2015 .net Core app builds & debugs fine but on publish get error: "The filename or extension is too long"
I have a .net Core web MVC app in VS2015. The app builds and debugs fine, but when I attempt to publish to either local or web profiles I get the infamous "The filename or extension is too long" error message. However, I have this project rooted in…

Larry Arrington
- 11
- 2