createfile Questions
10
Solved
I have googled for the below question, but could not find any answer.
Can someone help me on this;
What is the command to create a new file through Windows Powershell?
Fotina asked 1/8, 2017 at 19:34
11
Solved
So I'm attempting to do this Node.js tutorial, and it says to create three .js files from the command line.
touch server.js client.js test.js
Except I get the following error:
'touch' is not r...
Syneresis asked 13/10, 2014 at 15:49
5
I am working on a video editor program and am fairly new to android and java. What I would like to happen is when the user presses "create new project" button, a dialog pops up asking the user for ...
Overline asked 11/4, 2011 at 20:45
9
I'm trying to open a file, and if the file doesn't exist, I need to create it and open it for writing. I have this so far:
#open file for reading
fn = input("Enter file to open: ")
fh = open(fn,'r...
Delphiadelphic asked 4/3, 2016 at 22:58
4
Solved
How can i create in PHP a file with a given size (no matter the content)?
I have to create a file bigger than 1GB. Arround 4-10GB maximum
Exasperate asked 31/8, 2010 at 11:9
7
Solved
Most of my daily programming work in Windows is nowadays around I/O operations of all kind (pipes, consoles, files, sockets, ...). I am well aware of different methods of reading and writing from/t...
Gallop asked 19/3, 2010 at 7:53
2
Solved
I have a line-oriented text file (Unicode) that was created using CreateFile() and WriteFile().
Reading that file as a binary stream using ReadFile() is straightforward, but extra low-level proces...
Calder asked 1/9, 2010 at 1:40
1
Solved
I want to open directory handle so that I can watch that directory for file changes. I have written a simple class wrapper over the winapi, and this is how I set the directory path before starting ...
Phocomelia asked 11/7, 2019 at 10:21
2
Solved
I am trying to open a file for writing into it. The file may not exist.
I found that [NSFileHandle fileHandleForWritingAtPath:filePath] returns nil if file does not exist.
Having googled, I found ...
Lush asked 16/1, 2012 at 13:43
2
Solved
I'm trying to create a folder inside a folder, first I check if that directory exists and create it if necessary:
name = "User1"
if not os.path.exists("/pdf_files/%s" % name):
os.makedirs('/pdf_...
Fort asked 1/9, 2015 at 11:3
7
Solved
I have a problem with creating a folder and a file on the sdcard.
Here's the code:
File folder = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString(...
Culinarian asked 15/11, 2012 at 9:46
7
Solved
What is the best way to create an icon for an application?
From Visual Studio or maybe some another program.
I create an icon in Visual Studio and use it as application icon, but when I put the i...
Zigmund asked 9/1, 2011 at 12:20
4
As described here, using SetFileInformationByHandle with FILE_DISPOSITION_INFO
allows one to set a file with an open handle to be deleted upon all handles being closed.
However, I am trying to del...
Kokaras asked 25/3, 2016 at 9:16
1
Solved
I am wondering if for this code snippet:
HANDLE fhandle = CreateFile("something.c", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
HANDLE mapping = CreateFileMap...
Schottische asked 8/4, 2016 at 8:39
1
I was working on developing a batch program that would scan various sections of a PC, and log them to a file. Surprisingly, I was unable to have the program create the file to write to. I then trie...
Mccurry asked 13/1, 2016 at 21:31
2
Solved
When an iPhone is connected to a Win7 computer, the images can be viewed using Explorer (and the open file dialog of my app). However, the file location does not contain a drive letter.
For examp...
Lignin asked 13/6, 2012 at 14:54
1
Solved
I need to read several lines from file simultaneously, i.e. asynchronously.
Lines in file are of the same size.
For instance, I need to read the second and the fourth lines of file to separate var...
Brescia asked 18/6, 2015 at 11:40
3
Solved
i want to create a text file from a string. currently i am using a function which takes an array and makes it into a string then using that string i want to create a local text file the user downlo...
Gathard asked 18/5, 2012 at 14:57
1
Solved
I am trying to do some serial communication through my usb port (named COM15), and I am getting an error. This is the code where the error is occurring:
HANDLE myPortHandle = CreateFile("COM...
Nought asked 12/1, 2015 at 19:51
1
Solved
TL;DR
How much memory does opening a file take up on a modern Windows system? Some application loads will need to open "a lot" of files. Windows is very capable of opening "a lot" of files, but wh...
Illbred asked 23/1, 2014 at 13:41
2
I'm using WinLIRC with IR receiver connected to serial port COM1 on Windows 7 x64. WinLIRC is added to Startup folder (Start->All applications->Startup) so it starts every time I log in. Very often...
Pave asked 20/11, 2011 at 9:32
2
I'm trying to read binary data from a buffer file which is continuously written to by a different process (that I cannot modify). I'm using the following code in order to open the file:
fileH = Cr...
Malemute asked 13/3, 2013 at 12:26
5
Solved
My goal is to open a printer connected via USB using the CreateFile (and then issue some WriteFiles and ReadFiles).
If the printer was an LPT one, I would simply do CreateFile("LPT1:", ...). But f...
Pentup asked 18/5, 2012 at 11:39
1
Solved
Can anyone explain what the difference is between the creation dispositions OPEN_ALWAYS and CREATE_ALWAYS of the CreateFile() function of the windows API?
To me it seems that they both simply 'cre...
Depilate asked 22/1, 2013 at 22:57
2
Solved
Demonstration of my problem
Open a new Excel workbook and save these symbols 設計師協會 to cell [A1]
insert the following VBA code somewhere in the editor (Alt+F11)
execute it line per line (F8)
Sub...
Forlorn asked 10/1, 2013 at 15:42
1 Next >
© 2022 - 2024 — McMap. All rights reserved.