[Gambas-user] Class to Read/Write INI files

Benoit Minisini gambas at ...1...
Wed Jan 12 10:48:00 CET 2005


On Wednesday 12 January 2005 10:22, Frank Berg wrote:
> hi,
>
> i was try to make a new class for edit ini files,
>
> if i take an config file, and read with "LINE INPUT" 1 line in a string
> variable
> the input is
>
> [GLOBAL]
>
> but the string has [GLOBAL]\r
>

LINE INPUT reads the file until finding a newline character '\n' or the end of 
file. The '\n' character is not returned.

On Unix systems, lines are delimited with '\n', not '\r\n' like on Windows 
(what a stupid idea).

> and
>
> call_from = -
>
> is change in the string variable
>
> call_from = \"-\""
>
> is it correct that the "INPUT LINE" function gif me formatting information
> ??
> an real text file has none formatting information?!
>
> frank
>

I don't understand what you did, please give some source code...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list