Put quotation marks around the number.  "111" will be treated as a 
string - and the string literal will be written to the file (not 
swapped for its ascii equivalent - that you see without the 
quotation marks around the number).  111 may be converted to the 
ASCII equivalent of the "o" you speak of.  If you need to convert it 
back to a number for use in your program you can use the VAL() 
function to convert the string ("111") to a number with which you 
can do calculations (111+222=333).

HTH!

Richard



--- In [email protected], "testblokepuma" <[EMAIL PROTECTED]> wrote:
> I have now found that the random file mode allows me to both read 
and
> write data without closing the file, however when I try and write 
the
> integer 111 (for example) the file has the character "o", the Ascii
> code for decimal 111.
> Any tips on using the random file mode ?






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to