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)
MsgBox(0,"",$ostzdj)

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
Link to comment
Share on other sites

  • Developers

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

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...