473,324 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

text file compression

I was asked to compress a text file using a best algorithm;

this is the original file:
---------------------------------------
AGXY CDFR ABFGRX OPDABC SKLAWE
ABC FGTR OBHJKLABC XYZABC EFGH
---------------------------------------


I appreciate any hints.

Sree
May 25 '14 #1
1 1551
Luuk
1,047 Expert 1GB
compressing small file will almost always increase it's size
Expand|Select|Wrap|Line Numbers
  1. ll -Sr testf*
  2. -rw-r--r-- 1 luuk users  62 mei 25 21:50 testfile
  3. -rw-r--r-- 1 luuk users  84 mei 25 21:50 testfile.gz
  4. -rw-r--r-- 1 luuk users  87 mei 25 21:50 testfile.bz2
  5. -rw-r--r-- 1 luuk users 171 mei 25 21:53 testfile.7z
  6. -rw-r--r-- 1 luuk users 223 mei 25 21:50 testfile.zip
  7.  
May 25 '14 #2

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

Similar topics

1
by: Rigga | last post by:
Hi, I am new to Python and need to parse a text file and cut parts out i.e. say the text file contained 5 rows of text: line 1 of the text file line 2 of the text file line 3 of the text...
2
by: Eunice | last post by:
Hi, I want to extract strings from the following text file content. ********************* Description length of global graph compressed using this substructure = 302.907315 Compression =...
1
by: SStory | last post by:
Are there any functions in .NET or Windows that do file compression that I could include in a backup app I am making to sell? I have notice the LZ file operations but wonder would a developer be...
7
by: Chris | last post by:
Hi I can use a text file as a datasource but am unable to get the datatable to see the text file as having multiple columns. Everything gets put into the first column in the datatable. Sample of...
4
by: AHP | last post by:
Hi, I'm using Visual Studio 2005. I am developing a web application that uses the FileUpload control to upload text files to a directory on a webserver. This works fine. However, for me to be...
5
by: josh.tucholski | last post by:
I'm looking for some tools that allow us to implement Javascript Header File Compression. I know there are parsers out there that kill all the commenting and obliverate the code to make it as...
10
by: bluemountain | last post by:
Hi there, Iam new to python forms and programming too I had a text file where i need to extract few words of data from the header(which is of 3 lines) and search for the keyword TEXT1, TEXT2,...
3
by: sophia | last post by:
Dear all, the following is the file compression program ,using elimination of spaces, which I saw in a book #include<stdio.h> #include<stdlib.h> int main(int argc,char * argv) {
2
by: jimgardener | last post by:
i am looking for python code to convert a textfile(.txt) to an image(preferrably Tiff).I believe it involves some scanning and conversion using some font table and probably compression using...
0
by: =?Utf-8?B?QS4gQm9uc2xhdGVy?= | last post by:
I have an ASP.NET 1.1 web application on Windows Server 2003 that has been running for years now. Lately we've been having some problems with the website not responding after an application pool...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.