fileopen

Choosing Windows File Open and File Save Dialogs - What is the Best Practice?

For some time I've noticed how much the File Open and File save dialogs vary between Windows itself and Applications. In Delphi for example (which I use) you can use the built-in dialogs (which have a folder tree) and direct calls to the Windows API which produce variants of the Windows version, with or without large buttons for 'Desktop...

File open fails initially when trying to open a file located on a win2k8 share but eventually can succeeed

Core of the problem: I receive "(0x80070002) The system cannot find the file specified" for roughly 8 to 9 seconds before it can open it successfully. In a nutshell, we have two com components. Component A calls into Component B and asks for a UNC filename to write to - the filename returned doesn't exist yet, but the path does - it th...

What encoding are filenames in NTFS stored as?

I'm just getting started on some programming to handle filenames with non-english names on a WinXP system. I've done some recommended reading on unicode and I think I get the basic idea, but some parts are still not very clear to me. Specifically, what encoding (UTF-8, UTF-16LE/BE) are the file names (not the content, but the actual nam...

How to read a file byte by byte in Python and how to print a bytelist as a binary?

Hi, I'm trying to read a file byte by byte, but I'm not sure how to do that. I'm trying to do it like that: file = open(filename, 'rb') while 1: byte = file.read(8) # Do something... So does that make the variable byte to contain 8 next bits at the beginning of every loop? It doesn't matter what those bytes really are. The only...

How to make a increasing numbers after filenames in C?

Hi, I have a little problem. I need to do some little operations on quite many files in one little program. So far I have decided to operate them in a single loop where I just change the number after the name. The files are all named TFxx.txt where xx is increasing number from 1 to 80. So how can I open them all in a single loop one aft...

Fileopen trough the FolderBrowserDialog.. How?? HELP!

This is what i got now... FolderBrowserDialog1.ShowDialog() TextBox1.Text = FolderBrowserDialog1.SelectedPath If FolderBrowserDialog1.SelectedPath = Nothing = True Then MsgBox("Select your folder..") If FolderBrowserDialog1.SelectedPath = Nothing = True Then Button1.Enabled = False If FolderBrowserDialog1.SelectedPath =...

how do I open and read a file using ifstream in C++?

I would like to open a file and read a line from it. There will be only one line in the file so I don't really need to worry about looping, although for future reference it would be nice to know how to read multiple lines. int main(int argc, const char* argv[]) { // argv[1] holds the file name from the command prompt int numbe...

How to open a .html file in a smartphone.

Hi, i have a C# program written on visual studios 2008 windows mobile 6. I want to open a html file in the path @"\My Documents\maptoolkit.html" and after that it will open the mini-opera browser display whatever's necessary. It is by default the mini-opera browser if i opened it directly. How do i do it? ...