Jump to content

Filereadline - problem

Recommended Posts


Hello, I've problem with filereadline command (probably).


$settings = FileOpen(@DocumentsCommonDir & "\settings.ini", 1)
$ostzdj = FileReadLine($settings, 1)

Inside settings.ini in public documents I've

Ostatnie zdjęcie:IMG_8092
I tried change format, change file open mode, without macro, but all time it return nothing.
One strange thing what I found is when i was use 
MsgBox(0,"","'" & $ostzdj * "'")

It return '0 but idk why

Edited by Turtlix21

Share this post

Link to post
Share on other sites

Likely your FileOpen() points to the wrong file, so test for success of FileOpen by testing @error.


  • Like 1

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

File was in "\\users\public" but should be in "\\users\public\documents"

BTW. error returned -1

And now i will use ini commands couse I know about it :D

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.