Recent content by Matt654

  1. M

    Setting Up File.txt Position for Writing Function

    Thank you everybody... mainly ILSe for his optimalisation code(good piece of the code) it has been moved me a little bit forward... Now I am thinking about an optimised output buffer...
  2. M

    Setting Up File.txt Position for Writing Function

    I am going to try ILSe solution...
  3. M

    Setting Up File.txt Position for Writing Function

    Hi chiro, yes you are right, in IT area the people are using only 2,4,8,16 and 10dec nuber system..., but my assignment is to make a program that is able to convert among number systems from 2 - 35 and an next issue is that we have an GBs input stream... May be there is any super algorithm in...
  4. M

    Setting Up File.txt Position for Writing Function

    I am happy that my eng. was succesfully :) but I will work on that at any time :) Yes it is anassignment(with these constraints)... it looked easy, so I took it - but... about need to buffer one or two data - I need to buffer more data at time because then there will be much systems calling of...
  5. M

    Setting Up File.txt Position for Writing Function

    - unfortunatelly I have to use only open,read, malloc, free functions... - there is not lines... I mean there is a stream of data between [] - so I need to use the buffer with specified size - unsigned long long - 64bit ( 20 digits ) I thought about that, but e.g. I have number system 34 ( it...
  6. M

    Setting Up File.txt Position for Writing Function

    here is code: . . int main(int argc, char* argv) { char *readBuffer; char *ch2; int i; int temp; long readedChars; int readedCharsRestSeq; fd=open("mreadme.txt",O_RDONLY); if(fd==-1) { perror(NULL); return 1; } readBuffer=(char*)malloc(sizeOfBuffer*sizeof(char)); if...
  7. M

    Setting Up File.txt Position for Writing Function

    Thx for your patient MATLABdude, mainly for my no good eng. You are right, the key is not to try to work with the entire file, but one line of the file at a time. I would like to ask, that exist(is there) any convert method with which I can do that. (I did find the dibble-dabble method which...
  8. M

    Setting Up File.txt Position for Writing Function

    example of an input data : [1012222121310101]4=32 output should be : [13AJ78H]32 I am using dibble-dabble method only because the input data at first converts to dec value of self - what is in our case number 1185520913 and it takes only 4B instead of the input data where each number/char...
  9. M

    Setting Up File.txt Position for Writing Function

    Thx for the answer and greeting in physicsforum.com :) , I am trying to use only low level functions (read, write, open, close) You know I have on input (a file) couple gigaB of data in specified number base e.g. hexa (marked as Z16) and I need these data transform to another number system e.g...
  10. M

    Setting Up File.txt Position for Writing Function

    (I am using dibble-dobble method for coverting among number systems but for large data I would like to write partial results into the file and then continue with next part of data, but I have problem with writing the partial result... e.g. I have [188]Dec -> (Hex) so e.g. partialy I got at first...
  11. M

    Setting Up File.txt Position for Writing Function

    Hi, is possible to set up somehow cursor on end file.txt position for write function ? I can use only read,close, open functions from /fcntl.h/, + anybody know how convert number system from one to another and to write result into the file in correct way... e.g. I need covert [123456]Z7...
Back
Top