Sign in to follow this  
Followers 0
Hellfire

Convert A Integer To A String

6 posts in this topic

#1 ·  Posted (edited)

How can I convert a integer into a string.

Since the following are not working.

$int=FileReadLine($file,3) + 1
_FileWriteToLine($file,3,$int,1)

Or

_FileWriteToLine($file,3,FileReadLine($file,3) + 1,1)
Edited by Hellfire

Share this post


Link to post
Share on other sites



just quick thing are you sure your including file.au3

#include <file.au3>

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes I am.

I also tried:

_FileWriteToLine($file,4,"test",1)

And it did not work either.

Other functions that use file.au3 are working in my script though, such as _FileCreate and _FileCountLines.

Edited by Hellfire

Share this post


Link to post
Share on other sites

Yes I am.

I also tried:

_FileWriteToLine($file,4,"test",1)

And it did not work either.

Other functions that use file.au3 are working in my script though, such as _FileCreate and _FileCountLines.

Use Alt+F5 in SciTe editor when trying to use Beta functions.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Use String() to change a number to a string, use Number() to change a string to a number.

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
Sign in to follow this  
Followers 0