Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
readingi real from a file Posted by buddingone on 16 Jun 2009 at 11:29 AM
hi again,

how do I make pascal read prices of particular menu items from a file - just an idea which makes it easy to update prices without enetering the pas file. So far I have managed to make it read menu items only (I suppose that is easy as it's only string)

any help appreciated.
Report
Re: readingi real from a file Posted by w0lfg4 on 16 Jun 2009 at 9:11 PM
: So far I have managed to make it read menu
: items only (I suppose that is easy as it's only string)

Do the same with files, readln(_text_,_string_), then use the val procedure to convert the string to real.
Report
Re: readingi real from a file Posted by buddingone on 17 Jun 2009 at 9:53 AM
Thanks,

I will try it out this evening and let you know the results.

Much obliged.

Report
Re: readingi real from a file Posted by fofpc on 18 Jun 2009 at 10:37 PM
TAKE A LOOK AT THIS FOR FURTHER HELP
I have pasted some info may be this helps :)



NEW Friends-Of-FPC (FoFPC) Website!



FreePascal Information Logo
Articles with Feedback, FPC News Library, PDF Collection, Mail Lists, Books, Newsgroups, IRC Open online discussion areas Research and Tutorials Tools, Compilers and Utilities Blurbs about us, advertising, etc.
Welcome to the NEW Friends-Of-FPC (FoFPC) Website!

Overview
Free Pascal (aka FPK Pascal) is an open source compiler for 32bit and 64bit pascal and object. It is available for different processors: Intel x86, Amd64/x86_64, PowerPC, PowerPC64, Sparc, ARM. The following operating systems are supported: Linux, FreeBSD, Mac OS X/Darwin, DOS, Win32, Win64, WinCE, OS/2, Netware (libc and classic), Onix and MorphOS.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.