Check-in [23a733576e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[SYSTEM.BAS] - Clean memory after reading the settings file content.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:23a733576e66693280208391a4524f466d3e6f13
User & Date: Administrador 2016-10-06 02:20:44
Context
2016-10-06
02:44
[HTTP.BAS] - Add a file to implement the HTTP protocol functions and initialize the header. check-in: ebbd8290d2 user: Administrador tags: trunk
02:20
[SYSTEM.BAS] - Clean memory after reading the settings file content. check-in: 23a733576e user: Administrador tags: trunk
02:17
[MAIN] - Include System.bas in the main application file. check-in: 946a950a8f user: Administrador tags: trunk
Changes

Changes to root/core/system.bas.

25
26
27
28
29
30
31

32
  fileContent$ = ReadFile$(dataPath$ + "\settings.txt")
  keyParsed$ = SplitVar$(fileContent$, Key$, CHR$(10))
  IF keyParsed$ <> "" THEN
    getSettings$ = keyParsed$
  ELSE
    getSettings$ = Key$
  END IF

END FUNCTION







>

25
26
27
28
29
30
31
32
33
  fileContent$ = ReadFile$(dataPath$ + "\settings.txt")
  keyParsed$ = SplitVar$(fileContent$, Key$, CHR$(10))
  IF keyParsed$ <> "" THEN
    getSettings$ = keyParsed$
  ELSE
    getSettings$ = Key$
  END IF
  fileContent$ = ""
END FUNCTION