Jump to content
Sign in to follow this  
pDanil2006

how to create a text file?

Recommended Posts

pDanil2006

not found in the manual function of creating a text file. Please help

Share this post


Link to post
Share on other sites
martin

not found in the manual function of creating a text file. Please help

Look up FileOpen in the help.

Welcome to AUtoIt Forms


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
pDanil2006

hello!

FileOpen ( "filename", mode )
?

This feature allows you to open files. And how to create empty TXT files? Please write the code.

Edited by pDanil2006

Share this post


Link to post
Share on other sites
BigDod

hello!

FileOpen ( "filename", mode )
?

This feature allows you to open files. And how to create empty TXT files? Please write the code.

Lookup _FileCreate in the help file


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
Innovative

What is _FileCreate or FileWrite to you from the help files ?

Share this post


Link to post
Share on other sites
FireFox

FileWrite("yourfile.txt","")

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
pDanil2006

Very thanks! :)

Share this post


Link to post
Share on other sites
youknowwho4eva

Hmmm FireFox. You like to give the fish too often instead of teaching how to fish. If the OP had looked it up he would have see that 1) if the file doesn't exist, it is created and 2) that he needed the extension. Not a knock on you but it would encourage that they use the help file before coming here for such low research questions.


Giggity

Share this post


Link to post
Share on other sites
FireFox

@youknowwho4eva

sure....but when im on my iPod I prefer to be efficient and when Im on my computer I give some examples....

I think that newbies asking for stupid questions should after getting answer look at helpfile for more information... and here the fish is given :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
youknowwho4eva

I only use my iPhone for emergency forum checking (I think I've used it once to check a PM from Jos) :). way to much to forum on the iPhone. Besides I'm always near a computer.


Giggity

Share this post


Link to post
Share on other sites
martin

hello!

FileOpen ( "filename", mode )
?

This feature allows you to open files. And how to create empty TXT files?

Since you haven't been able to read the help file I have placed the relevant part from the description for FilOpen here

Both write modes will create the file if it does not already exist. The folder path must already exist ....

It is worth looking in the help as I suggested because had you done that you would have seen an example. By reading the explanation you would have been able to make a very small change to the example to do what you asked for.

Please write the code.

Please give me a break. :) Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×