Jump to content
Sign in to follow this  
Hellfire

Convert A Integer To A String

Recommended Posts

Hellfire

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
Thatsgreat2345

just quick thing are you sure your including file.au3

#include <file.au3>

Share this post


Link to post
Share on other sites
Hellfire

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
SmOke_N

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.

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.

Share this post


Link to post
Share on other sites
greenmachine

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  

×