|
From: JS <jsc...@gm...> - 2001-09-03 09:28:17
|
hi, i am trying to convert a simple integer or byte or anything else to a string in order to write to a file on disk. It does not work the way i did it for years with e.g. Microsoft C7.0 (Win3.1) and Visual C 6.0 (W32) - dont know why. a) How do i convert a number liek eg int a = -105 to exactly ythis string ? b) Which function would be the best to write and read the correct format fomr and to HD-Files ? I used to apply fprintf with formatted strings to read full lines of a file with known structure and directly obtained the desired variables. I copied the source code from a DOS prog and DEV C compiles but reads only shit ! Sorry for that, but I am going to get upset with this compiler. Does any body have an example wich directly works in DEV CPP to find out where the problem is ? thanks in progress. ............... |