Home > Back-end >  Delphi send subtopic
Delphi send subtopic

Time:11-08

my question is not complicated, XE10 how to create a category in the mobile phone, to create a document in the directory, as long as the test is feasible, immediately send

CodePudding user response:

USES the SYstem. IOUtils;

CreateDir (TPath.Com bine (TPath GetHomePath, 'SomeDir'));
With ForceDirectories can also, if not in the HomePath directory/file, need to store permissions

CodePudding user response:

How to build a file?

CodePudding user response:

My request is to build a directory under the internal storage, to build a file inside, 1/f, brothers you spelled it took me not,

CodePudding user response:

The build directory you know, set up files won't? AssignFile/Rewrite/CloseFile TFileStream. Create...
The only need to consider the Dos/Windows and Unix/Linux path separator is different, you can use the System. SysUtils. PathDelim

CodePudding user response:

references 4 floor early play play nuclear response:
build directory you know, not build file? AssignFile/Rewrite/CloseFile TFileStream. Create...
The only need to consider the Dos/Windows and Unix/Linux path separator is different, you can use the System. SysUtils. PathDelim

I said is XE10 write program can build directory in android phones, set up files, Windows wouldn't be here

CodePudding user response:

You don't understand that is can't ~ ~ ~

CodePudding user response:

FS:=TFileStream. Create (TPath GetHomePath + + PathDelim PathDelim + 'SomeDir' + 'SomeFile', fmOpenReadWrite);

CodePudding user response:

refer to 7th floor early play big play nuclear response:
FS:=TFileStream. Create (TPath. GetHomePath + + PathDelim PathDelim + 'SomeDir' + 'SomeFile', fmOpenReadWrite);


Attention to the case directory string

CodePudding user response:

Well, if the new file to use fmCreate ~ ~ ~

CodePudding user response:

Don't know can under Linux command can be used in the android

_system (' mkdir/ABC)
  • Related