View Full Version : read from file byte by byte
g i a n n i
10-27-2004, 03:57 PM
Hello Guys :)
Listen, I am currently on a school project and I need to make something the sort of WINZIP, and I have to start to read from the file byte by byte...
There is a predefined function to do that, right?
Please help me... Keep in touch...
Gianni
Whiteknight
10-28-2004, 10:27 AM
well, it would help if you told us specifically what language you are using. but in general, any good programming language will have a function to read and write to a data file, so there has to be something.
zachogden
10-28-2004, 06:30 PM
It seems that people really love to be vague! The last probably half a dozen new threads I've read have hidden details that could quickly produce an answer.
Making an ZIP program, eh? For school? Sounds like quite an undertaking. If it gets to a point where you would be interested in pursuing this even after it is "finished" tell us about, and register it as a SF project. Sounds cool.
g i a n n i
10-29-2004, 02:07 PM
I'm sorry guys... I forgot to tell which language I was on :( That's just clumsy...
Thanks for the attention anyway...
The language is OCaml. I guess I kind of sorted the problem out... I guess the command is "input_byte" when you open a channel to the file you want to read from.
something like:
(...) let channel = input_byte thefile in (...)
Thanks guys... sorry if I didn't tell the language... blame it on the work ;)
Have a good one. Cheers.
Whiteknight
10-30-2004, 10:25 AM
haha, it's alright. I've had those days where i was so frustrated by a problem, that i seem to forget everything except for a few specific details. I'm glad you got your program working though, i've always wanted to start learning a Functional Language like OCaml, but i never had the time.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.