473,770 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

fgets bzip2

i need to read a row on a bzip2 file like the fgets function does on a
text file

can you help me to find this function

thank

Feb 2 '07 #1
7 2433
On Feb 2, 10:21 pm, giuseppe.canne. ..@gmail.com wrote:
i need to read a row on a bzip2 file like the fgets function does on a
text file

can you help me to find this function

thank
Will you work on gcc? The linux should have some corresponding
function library!
Cool images sent on Valentine's Day,http://winend.com

Feb 2 '07 #2
no
i work with visual c++

On 2 Feb, 15:33, "ImageMagicLead er" <dai.zhi...@gma il.comwrote:
On Feb 2, 10:21 pm, giuseppe.canne. ..@gmail.com wrote:i need to read a row on a bzip2 file like the fgets function does on a
text file
can you help me to find this function
thank

Will you work on gcc? The linux should have some corresponding
function library!
Cool images sent on Valentine's Day,http://winend.com

Feb 2 '07 #3
On Feb 2, 9:21 am, giuseppe.canne. ..@gmail.com wrote:
i need to read a row on a bzip2 file like the fgets function does on a
text file

can you help me to find this function

thank
http://www.bzip.org/1.0.3/html/index.html

You want to download the bzip library (probably source code for you)
Feb 2 '07 #4

gi************* **@gmail.com wrote:
i need to read a row on a bzip2 file like the fgets function does on a
text file

can you help me to find this function
What do you mean by "row"? fgets does not read a row, from a text
file. It attempts to read a line. If you want to read pure binary data
from the bzipped file, use fread(), otherwise, it's better to use
bzip's own source code.

Feb 2 '07 #5
gi************* **@gmail.com wrote:
no
i work with visual c++
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html >
Feb 2 '07 #6
In article <52************ *@mid.individua l.net>,
Default User <de***********@ yahoo.comwrote:
>gi************ ***@gmail.com wrote:
>no
i work with visual c++

Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html >
Get a life! Please, please. I think it may be about time for an
intervention. Have you spoken to your clergyman about your problem?

Feb 2 '07 #7
Lew Pitcher wrote:
On Feb 2, 9:21 am, giuseppe.canne. ..@gmail.com wrote:
>i need to read a row on a bzip2 file like the fgets function does on a
text file

can you help me to find this function

thank

http://www.bzip.org/1.0.3/html/index.html

You want to download the bzip library (probably source code for you)
Didn't this guy ask the exact same thing about zlib last week?
Feb 2 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12411
by: Tanel | last post by:
Hello, I need to read a result of the first script (that takes some time to run) from the second script so that the first script doesn't block the second. Here is a short example. do_smth_else() should be called during test.php's sleep, instead the first fgets blocks the processing of the parent script and do_smth_else is called only once. How can I do a non-blocking fgets()? I use php 4.3.4 on windows xp $process = popen("c:\php\php...
5
7246
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files, two aspects which I want to incorporate into my program eventually. That aside, my most pressing problem right now is how to get rid of the newline in the input when I use fgets(). Now I have looked around on the net, not so much in this group...
20
7910
by: TTroy | last post by:
Hello, I have found some peculiar behaviour in the fgets runtime library function for my compiler/OS/platform (Dev C++/XP/P4) - making a C console program (which runs in a CMD.exe shell). The standard says about fgets: synopsis #include <stdio.h> char *fgets(char *s, int n, FILE *stream);
35
9991
by: David Mathog | last post by:
Every so often one of my fgets() based programs encounters an input file containing embedded nulls. fgets is happy to read these but the embedded nulls subsequently cause problems elsewhere in the program. Since fgets() doesn't return the number of characters read it is pretty tough to handle the embedded nulls once they are in the buffer. So two questions: 1. Why did the folks who wrote fgets() have a successful
11
3669
by: santosh | last post by:
Hi, A book that I'm currently using notes that the fgets() function does not return until Return is pressed or an EOF or other error is encountered. It then at most (in the absence of EOF/error), returns n-1 characters plus a appended null character.
0
1205
by: itzel | last post by:
Hello!! In using tarfile to group thousands of small files from a directory and then compress it. I already compress a group of files in my pc, but I need do it in a server and I'm testing the same procedure, but it doesn't work . A "ReadError" appear: "not a bzip2 file". I'm using this script: import os import tarfile
232
13343
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first set of examples, after decoding the HTML FORM contents, merely verifies the text within a field to make sure it is a valid representation of an integer, without any junk thrown in, i.e. it must satisfy the regular expression: ^ *?+ *$ If the...
0
1270
by: Geky | last post by:
I'm trying to use BZip2 library but I receive always an access violation error. I use two different codes: bz_stream bzstream; ZeroMemory(&bzstream, sizeof(bzstream)); bzstream.bzalloc=NULL; bzstream.bzfree=NULL; bzstream.opaque=NULL;
6
1388
by: Nilesh | last post by:
I have a query about Bzip2 in PHP. Let's say that i have a paragraph like: abcdbc nnotp iidhdmmc; uuidpssa -------End------- Now, i compress it using bzcompress() and store it in a mysql database.
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.