Author Topic: Function Read  (Read 1056 times)

0 Members and 1 Guest are viewing this topic.

Offline Rampage_Terranius

  • Major
  • *
  • Posts: 69
  • The Strategist
    • Soldat Noob Servers
Function Read
« on: October 06, 2008, 05:21:38 am »
Script Name: Read
Script Description File Reader
Author: Rampage_Terranius
Compile Test: Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:
Decided to make my own read function as ReadINI leaves coding behind and Copy usually takes alot of time to set up the string positions


Used like so:
Read(location of file,start of copy,end of copy)

for example here is some random file coding from the directory Files/55.ini
Cash=100
Level=1

i would use Read('Files/55.ini','Cash=','Level=')

if you are at the end of a file and there is no values to end on use '' to tell it to use the scripts length instead of a strpos



(Size 564 B)
- http://soldatcentral.com/index.php?page=script&f=50 -


** Script hosted by Soldat Central! Please visit the authors script page and Rate this script **


Date Posted: October 03, 2008, 08:13:11 pm
coding changed to auto detect ascii symbols 10 and 13 that are usually used to indicate next line