Platform/File(장치 IO)
-
파일 시스템 - C#Platform/File(장치 IO) 2014. 10. 8. 23:46
System.IO.Directory.GetFiles() namespace GetFiles{ public partial class Form1 : Form { .. private void button1_Click(object sender, EventArgs e) { .. string[] Files = Directory.GetFiles(Environment.SystemDirectory, "*.dll", SearchOption.TopDirectoryOnly); foreach (string Name in Files) { .. Name .. } } }}System.IO.FileSystemWatcher -> System.ComponentModel.Componenton Created // System.IO.FileSy..
-
어셈블리어 - LinuxPlatform/File(장치 IO) 2013. 5. 13. 23:18
.section .data .equ SYS_OPEN, 5.equ SYS_WRITE, 4.equ SYS_READ, 3 .equ SYS_CLOSE, 6.equ SYS_EXIT, 1 .equ O_RDONLY, 0.equ O_CREAT_WRONLY_TRUNC, 03101 .equ STDIN, 0.equ STDOUT, 1.equ STDERR, 2 .equ LINUX_SYSCALL, 0x80 .equ END_OF_FILE, 0 .section .bss.equ BUFFER_SIZE, 500.lcomm BUFFER_DATA, BUFFER_SIZE .section .text .equ ST_SIZE_RESERVE, 8.equ ST_FD_IN, -4 # input file descriptor.equ ST_FD_OUT, -8..
-
자바Platform/File(장치 IO) 2012. 6. 1. 16:24
java.io.DataOutput // 인터페이스 java.io.DataIntput // 인터페이스 java.io.RandomAccessFile.close().writeInt().read().readInt().seek().getFilePointer()import java.io.*; public class RandomAccessFileTest { public static void main(String[] args)throws IOException { RandomAccessFile f; f = new RandomAccessFile("...", "rw"); for(int i=0;i
-
파일 시스템 - ASPPlatform/File(장치 IO) 2011. 5. 6. 18:13
Scripting.FileSystemObject.GetDrive().GetFolder()' folder.GetFile() (' File).CreateTextFile().DeleteFile().FileExists()(.CopyFile())(.MoveFile())Folder(.Name).SubFolders[].Files[]File.DateCreated(.Name)(.Size)(.DateLastModified) Set fs = Server.CreateObject("Scripting.FileSystemObject") Set Cdrive = fs.GetDrive("c:") .. Cdrive.freespace .. Set myfile = fs.GetFile("c:\config.sys") .. myfile.size ..